PDA

View Full Version : EXT 3.0 - Row Editor Example- Parse Selected / Highlighted Rows



fuzelogic
30 Aug 2009, 12:54 PM
Hello,

I've been working with the following example.

http://extjs.com/deploy/dev/examples/grid/row-editor.html



ref: '../removeBtn',
iconCls: 'icon-user-delete',
text: 'Delete User',
disabled: true,
handler: function(){
editor.stopEditing();
var s = grid.getSelectionModel().getSelections();

var selectedKeys = new Array();
for(var i = 0, r; r = s[i]; i++){
//myCustomerStore.remove(r);
selectedKeys[i] = s[i];
}

var encoded_keys;
Ext.MessageBox.alert("Count Val:",selectedKeys[0]);


I'm trying to get a number field, but can't seem to access the array of the user selections. I also tried to assign to another array, but still can't get access to the number