listeners : {
click : function()
{
- var s = _this.grid.selModel.selection.record.id;
+ console.log(_this.grid);
+ var s = _this.grid.getSelectionModel().getSelections();
- if (s.length * 1 < 1) {
+ if (!s.length) {
Roo.MessageBox.alert("Error", "Select a Row");
return;
}