Kliver Max
Kliver Max

Reputation: 5299

Getting gridpanel's cell value. ExtJs

I have a grid panel with some columns and CheckboxSelectionModel. When i check sone rows i want to get a value of the id cell.

enter image description here

var sm = new Ext.grid.CheckboxSelectionModel({

    listeners: {
        selectionchange: function(sm) {
        alert('coucou : ' + sm.getSelected().id);
        }
    }
});

Upvotes: 0

Views: 1416

Answers (1)

Kliver Max
Kliver Max

Reputation: 5299

Ok im dummy. To get a value of cell with name id needed

var sm = new Ext.grid.CheckboxSelectionModel({

      listeners: {
       selectionchange: function(sm) {
       alert('coucou : ' + sm.getSelected().get("id"));
      }
    }
});

Upvotes: 2

Related Questions