开发者

JQuery JqGrid: How to filter grid without using local and calling server to filter

I have a JqGrid that's populated by a server-side Spring-powered data. I don't use local property in my JqGrid. Whenever I search, it calls the server-side to call the specified url in the JqGrid configuration. That's good.

But what if I just want to filter out the existing data that the grid is showing? Assuming the grid is showing 50 records (let's ignore paging or hypothetically think that there are 10 more remaining pages). How do I search this 50 records for a particular entry without calling the server-side.

Now that I'm able to search. The grid should be able to filter out and show only 开发者_高级运维those items I wanna see.

Thanks a lot.


Look at the old answer which use pure searching with respect of jQuery. This way should work in your environment.

To be sure how delRowData work read in the documentation used in the demo from the answer:

delRowData Deletes the row with the id = rowid. This operation does not delete data from the server.

So at the next reload of the grid with the data from the server you will see original data.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜