记录复选框选中的索引

            var sm = gridArray.getSelectionModel();
            var rs = sm.getSelections();
            var rowIndex=new Array();
            rowIndex.clear();
            Ext.each(rs, function(item) {
            rowIndex.push(store.indexOf(item));
            });       

这里的索引并非store中的数据而是数据在store中的索引,设想gridPanel中点击排序相对应的Store数也许会跟着改变,这点倒是没试过...

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-06
  • 2021-07-13
  • 2021-10-12
  • 2021-10-21
  • 2021-04-01
猜你喜欢
  • 2021-07-04
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-01-14
  • 2022-03-10
相关资源
相似解决方案