如何在jqgrid中检索xml数据 [英] How to retrieved xml data in jqgrid

查看:128
本文介绍了如何在jqgrid中检索xml数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我无法在jqgrid中检索数据。



数据是xml文件,请告知。



谢谢,

Arunkumar kanigiri。

解决方案

如果您使用Jquery插件意味着检查提及路径是否正确

或者

查找以下示例代码

< br $> b $ b

 jQuery(#gridid)。jqGrid({
..
xmlReader {
root rows,
colModel:[{name:'amount ',...,xmlmap:'amt'...}
.. ] // 将您的字段显示为
row:row,
page:rows> page,
总计:行>总计,
记录 rows> records,
repeatitems: true
cell:cell,
id:[id],
userdata:userdata,
subgrid: {
root rows,
行:row,
repeatitems:true,
cell:cell
}

},
...
});


Hi,

I can''t retrieved the data in jqgrid.

The data is xml file,please let know.

Thanks,
Arunkumar kanigiri.

解决方案

If your using Jquery plugin means check the mention path is correct or not
or else
Find the below sample code


jQuery("#gridid").jqGrid({
...
   xmlReader : {
      root: "rows",
      colModel : [ {name:'amount',..., xmlmap:'amt'...}...],  //put your fields to Display 
      row: "row",
      page: "rows>page",
      total: "rows>total",
      records : "rows>records",
      repeatitems: true,
      cell: "cell",
      id: "[id]",
      userdata: "userdata",
      subgrid: {
         root:"rows",
         row: "row",
         repeatitems: true,
         cell:"cell"
      }
   },
...
});


这篇关于如何在jqgrid中检索xml数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆