Filtering in jqgrid

Skip to first unread message


Dec 1, 2010, 7:01:57 PM12/1/10
to wiquery-plugins
is there an easy option to add filter functionality to the jqgrid
implemetation of wiquery-plugin?
If not, how would you start implementing this?

Thanks for your input

Ernesto Reinaldo Barreiro

Dec 2, 2010, 2:03:36 AM12/2/10
Hi Elstefanito,

AFAIK "native" jqgrid filtering functionality is not yet integrated.
Right now you will have to do filtering as with any of other Wicket
based grids:

-Grid is based on IDataProvider interface so you could create an
implementation that is aware of filters (e.g. a bean containing the
information to use as filters).
-Create a form.
-Put the filter text fields and the grid inside this form
-Once form is submitted (e.g. via AJAX) reload the grid via AJAX: this
will trigger a callback to the server, how will end up using data
provider to retrieve new (filtered) data.

Hope this helps. I will see if I can find the time and add an online
example illustrating how to do this.


Reply all
Reply to author
0 new messages