1、获取对象Ext.getCmp('<%=uxDetailTabPanel.ClientID%>') 根据Id获取对象

2、获取选中的行:

   var aselections = Ext.getCmp('<%=gpSupplierDiscount.ClientID%>').getSelectionModel().selections.items;

   var record = aselections[0].data;

  record.Id 绑定的列名 获取值

3、根据Index让符合条件的行被选中

 var grid = Ext.getCmp('<%=gpInvoice.ClientID%>');

多行被选中

var arrayIds=new Array();

传入对应的数组

grid.getSelectionModel().selectRows(arrayIds, true);

单行选中

grid.getSelectionModel().selectRows(index);

posted on 2014-09-23 18:46  水月无痕  阅读(147)  评论(0编辑  收藏  举报