Hi,
I have a grid with two columns Name and Address
$("#eta_jqxgrid").jqxGrid( { source: eta_dataAdapter, sortable: true, pageable: true, pagesize: 20, showfilterrow: true, filterable: true, columns: [ {text: 'Name', datafield: 'NAME', filtertype: 'textbox', filtercondition: 'contains'}, {text: 'Address', datafield: 'ADDRESS', filtertype: 'textbox', filtercondition: 'contains'} ] });
I want to have URLs like mysite.com?NAME=abcd&ADDRESS=1234 which filters the results on these two fields
I tried to put this after the reading of the rows in the database
var filtervalue = 'abcd';var filtercondition = 'contains';var filter = filtergroup.createfilter('stringfilter', filtervalue, filtercondition);filtergroup.addfilter(1, filter);$('#eta_jqxgrid').jqxGrid('addfilter', 'NAME', filtergroup);
But this does nothing.
Question 1 : why sometimes it must be filtertype = ‘textbox’ and sometimes filtertype = ‘stringfilter’ ?
Question 2 : How to do for this filter to work ?
Thanks for your answers