开发者

How to reload a jqGrid with new xmlstring data constructed on the client-side

Initially the jGrid is sucesfully loaded with xmlstring data. Then I am using custom code to allow the user to filter the data of the Grid.

A new xml string is constructed and I am trying to feed this to the jGrid and force a reload using:

('#adsGrid').jqGrid('setGridParam',{datastr:adsStrNew}).trigger("reloadGrid");

However the data remains the same, although the new xml adsStrNew is correct and different to the original one, does .trigger("reloadGrid"), take the new passed parameter into account(adsStrNew) or it 开发者_C百科uses the original datastr?


I solved it by including dataype: "xmlstring" in setGridParam.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜