jQWidgets Forums

jQuery UI Widgets Forums Grid Grid Filtering not working

Tagged: ,

This topic contains 3 replies, has 3 voices, and was last updated by  Martin 6 years, 5 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Grid Filtering not working #102980

    kourav963
    Participant

    JSFiddle

    I’m trying to search some text in more than one column in a grid with or condition. Meaning if the text that I’m searching for is present either in any of the columns the grid should show those rows.

    Code works perfectly when I specify one column as below:

     $("#jqxgrid").jqxGrid('addfilter', 'firstname', filtergroup);
         // apply the filters.
         $("#jqxgrid").jqxGrid('applyfilters');

    If I add one more column to the filter, it fails and no data is shown in the grid. Check the fiddle for more info.

      $("#jqxgrid").jqxGrid('addfilter', 'firstname', filtergroup);
       $("#jqxgrid").jqxGrid('addfilter', 'lastname', filtergroup); 
         // apply the filters.
         $("#jqxgrid").jqxGrid('applyfilters');
    Grid Filtering not working #103003

    Martin
    Participant

    Hello kourav963,

    You should set the operator of the filtergroup to ‘or’:
    filtergroup.operator = 'or';

    Here is an Example.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

    Grid Filtering not working #103047

    ankurvp
    Participant

    Filter panel open at right side of first column in JQXGrid, how can i do that.

    Grid Filtering not working #103061

    Martin
    Participant

    Hello ankurvp,

    This question is duplicated.
    Please, refer to the following Topic.

    Best Regards,
    Martin

    jQWidgets Team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.