jQuery UI Widgets Forums Grid Filtering in JQX Grid

This topic contains 2 replies, has 2 voices, and was last updated by  aneeshmm 10 years, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • Filtering in JQX Grid #58252

    aneeshmm
    Participant

    Hi Team,

    Is it possible to load the data appearing in the filter list-box from an external data source other than the actual items existing in the grid for that column? We are using the excel like filtering.

    Ex: Say we have a grid like shown below. In normal scenario the filter values for Fruits column would be a checkbox list with values ‘Apple’, ‘Orange’, ‘Pineapple’, ‘Apple Guava’
    The requirement is to have ‘Apple’, ‘Orange’, ‘Pineapple’, ‘Guava’, ‘Grapes’, ‘Pomegranate’ (These values will be present in a JSON or Array format in the page)

    Fruits Color

    Apple Red
    Orange Orange
    Pineapple Yellow
    Apple, Guava Green

    Thanks,
    Aneesh

    Filtering in JQX Grid #58259

    Dimitar
    Participant

    Hello Aneesh,

    You need to set the column’s filteritems property. Here is an excerpt from the jqxGrid API Documentation about it:

    filteritems – sets the items displayed in the list filter – when the “showfilterrow” property value is true and the filter’s type is “list” or “checkedlist”. The expected value is Array or jqxDataAdapter instance.

    Best Regards,
    Dimitar

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

    Filtering in JQX Grid #58262

    aneeshmm
    Participant

    Thank you Dimitar… I’ll give it a try

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

You must be logged in to reply to this topic.