反正是有传回更多数据的jqGrid的TreeGrid URL请求? [英] is there anyway to pass back additional data in jqgrid treeGrid url request?

查看:239
本文介绍了反正是有传回更多数据的jqGrid的TreeGrid URL请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用的jqGrid树状,我回传JSON响应伟大的工程。有关于请求,我想传递回GUI一些额外的信息,我想看看这样做的最佳方式。

i am using jqgrid treeview and i am passing back json response which works great. There is some additional information about the request that i would like to pass back to the GUI and i wanted to see the best way of doing this.

我现在能想到的唯一的办法就是让在TreeGrid的另一列,并将这些数据推入JSON响应。

the only way i can think of now is to have another column in the treegrid and shove this data into the json response.

是否有任何其他方式传回更多的数据来显示的确切答复外客户端来填充树??

Is there any other way to pass back additional data to display on the client side outside the exact response to populate the tree ??

推荐答案

就像在标准网格的情况下,你可以填补JSON数据的用户数据部分(见<一href=\"http://stackoverflow.com/questions/3848815/how-to-read-userdata-in-jqgrid/3849513#3849513\">here了解更多信息)。的的用户数据的值可以是任何格式的任何对象。在<一个href=\"http://stackoverflow.com/questions/3564898/jqgrid-programatically-select-grid-row/3571392#3571392\">the回答我使用的数据发送关于网格填充后应选择的行(S)的信息。

Like in case of standard grid you can fill the userdata part of the JSON data (see here for more information). The value of the userdata can be any object in any format. In the answer I used the data to send information about the row(s) which should be selected after the grid are filled.

此外,你可以用的任何其他信息扩展标准JSON数据。这些信息将被jqGrid的忽略,但您有权访问的整个数据从服务器发送的 loadComplete(数据)事件处理程序。

Additionally you can extend the standard JSON data with any additional information. The information will be ignored by jqGrid, but you have access to the whole data sent from the server inside of the loadComplete(data) event handler.

这篇关于反正是有传回更多数据的jqGrid的TreeGrid URL请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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