开发者

jqGrid data loading

开发者 https://www.devze.com 2023-03-30 07:58 出处:网络
I have 3 jqGrid instances on a page and all of them use the same grid data except it\'s filter开发者_如何转开发ed differently for each. I don\'t want to have to make a separate ajax call for each grid

I have 3 jqGrid instances on a page and all of them use the same grid data except it's filter开发者_如何转开发ed differently for each. I don't want to have to make a separate ajax call for each grid to load its data.

Is there a way for all 3 to work with the same data locally? I see the "loadonce" option but I don't think that's what I need, based on the docs.


I would suggest you make a single call using jQuery's ajax method, then update the grids manually using the addJSONData or addRowData methods on jqGrid.

0

精彩评论

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