简体   繁体   中英

Using JQGrid in a search screen

Hi (sorry for my pityful english) i have been reading on JQGrid for about 4 days. Small examples work great. But each time, the example show a grid alone filled at the loading of the page. i would like to have a search screen (one textbox like google) and show the answer in the jqGrid (on the post message). I have seen some part of code with datatype, other with jsonReader...but nothing complete. I am totally lost. i just want to fill the grid in json post and when i try, i only get the json message in text on the screen.

I am using ASP.NET MVC4, and learn with free JQGrid. I am quite sure such an example exists. I must be a poor searcher myself.

Can you give a link to such an example? thank you very much.

If you are preloading all of the data needed for your jqGrid , then you can add a client-side search textbox using the code I've documented here:

jqGrid client-side searching

This is useful for small datasets, where (for example) you want to quickly search for a particular person in a JavaScript array of employee records, but it won't be useful if you have a very large dataset.

This example also shows how to use a search textbox without having to open jqGrid's user-unfriendly Search popup dialog.

正在搜寻

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM