=== 1 ===================
grid.getSelectionModel().on('rowselect', function(sm, rowIdx,r){
alert(r.data.my_id+" : "+r.data.organization);
alert(rowIdx);
alert(grid.getSelectionModel().getCount());
alert(grid.getSelectionModel().getSelected().get('my_id'));
//bookTpl.overwrite(detailPanel.body, r.data);
});
=== 2 =================================
var getData = grid.getSelectionModel().getSelected();
alert(getData.get('my_id'));
=== 3: multi selection =================================
var getData = grid.getSelections();
for (var i = 0 ; i < getData.length ;i++) {
alert(getData[i].get('my_id'));
}
Tuesday, 7 October 2008
Subscribe to:
Post Comments (Atom)
7 comments:
Thanks!! your example is very useful.
very useful - thanks.
hi very useful thanks.
Help me, thanks :)
=== 3: multi selection
var getData = grid.getSelections();
for (var i = 0 ; i < getData.length ;i++) {
alert(getData[i].get('my_id'));
}
In Ext 3.0 this example not works, this would be grid.getSelectionModel().getSelections();
Thanks, this is help me...
thanksssssssss
Post a Comment