How to filter the jqGrid data NOT using the built in search/filter box

前端 未结 3 568
执念已碎
执念已碎 2020-11-21 05:59

I want users to be able to filter grid data without using the intrinsic search box.

I have created two input fields for date (from and to) and now need to tell the g

3条回答
  •  耶瑟儿~
    2020-11-21 06:44

    I had the same requirements, and (with Oleg's help) came up with this:

    enter image description here

    Basically, the user starts typing in the "Employee name" textbox, and immediately the results get shown in the jqGrid.

    Details of how I implemented this are here:

    jqGrid - Change filter/search pop up form - to be flat on page - not a dialog

    Note that I specifically load all of the JSON data for my jqGrid in advance, and that for large data sets, there is a delay when running this code on an iPhone/Android device as you type each character.

    But, for desktop web apps, it's a great solution, and makes jqGrid much friendler for the user.

提交回复
热议问题