开发者

jqgrid jsonReader

开发者 https://www.devze.com 2023-02-05 04:59 出处:网络
Is there a way I can access the \'records\' parameter of jsonReader in loadComplete? jsonReader: { re开发者_开发百科cords:\"RECORDS\",...

Is there a way I can access the 'records' parameter of jsonReader in loadComplete?

jsonReader: {
re开发者_开发百科cords:"RECORDS",...

}
loadComplete:function() {
  getJSONReaderParam....
}

Also, Can I add a number to rowList on loadComplete?

rowList: [10,20,30],
....
loadComplete: function() {
  var getrowlist = $("#list").getGridParams("rowList");
 $("#list").setGridParam({rowList:[10,20,30,40});

}

Thanks..


loadComplete takes a data parameter.

loadComplete:function(data) {
    var records = data.records;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消