重新加载单个jqGrid行? [英] Reload single jqGrid row?
问题描述
如何重新加载单个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
等于要刷新的行.服务器成功响应后,您可以使用setRowData
或delRowData
来更新包含的行或删除该行.
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屋!