Filtering in jqgrid

26 views
Skip to first unread message

bimsimsala

unread,
Dec 1, 2010, 7:01:57 PM12/1/10
to wiquery-plugins
Hi,
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

unread,
Dec 2, 2010, 2:03:36 AM12/2/10
to wiquery...@googlegroups.com
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.

Ernesto

Reply all
Reply to author
Forward
0 new messages