Extjs 向gridpanel的store中添加数据时,添加后的数据没有index

2025-02-28 08:43:03
推荐回答(1个)
回答(1):

实现对gridpanel中的数据进行修改,选中后根据records[0].index修改

不太懂你的意思,看下面的会不会有什么启发
//先得到records集合
var records=s.getRange();
s.each(function(record,index){
//你可在此修改值

});