重新加载单个jqGrid行? [英] Reload single jqGrid row?

查看:88
本文介绍了重新加载单个jqGrid行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何重新加载单个jqGrid行?

How can you reload a SINGLE jqGrid row?

我们知道如何重新加载整个网格-但是,只要知道行中的数据已更改,我们只想更新一行.

We know how to reload the entire grid - but we just want to update a single row when we know that the data in the row has changed.

推荐答案

如果您将数据保存在服务器上,并且服务器支持数据过滤(单个 ="noreferrer">高级搜索),则可以使用在jqGrid中用于手动jQuery.ajax调用的相同网址.您只应将过滤器设置为id等于要刷新的行.服务器成功响应后,您可以使用setRowDatadelRowData来更新包​​含的行或删除该行.

If you hold the data on the server and your server support filtering of data (single of advance searching) then you can use the same url which you use in jqGrid for your manual jQuery.ajax calling. You should set only the filter to id equal to the row which you need to refresh. On successful response from the server you can use setRowData or delRowData to update the row contain or to delete the row.

这篇关于重新加载单个jqGrid行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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