jQWidgets Forums

jQuery UI Widgets Forums Lists ListBox Get current filter value

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Get current filter value #94063

    meaderick
    Participant

    I have a ListBox with {filterable: true}. I searched documentation but can’t find a way to get the current filter input value.

    Is there any such method?

    Get current filter value #94092

    Stanislav
    Participant

    Hello meaderick,

    Here is a Fiddle with an example, that gets the input field’s value and displays it in the console by clicking on the button.

    Best Regards,
    Stanislav

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

    Get current filter value #103201

    areisyus
    Participant

    What if I have many columns? How could I find a specific filter field?

    I’m using angular 7.

    My current problem is that I customized a column to filter by 2 data fields (lets say “description” if value isNaN or “code” if value is a valid number) my column is mapped for dataField “description” so when the filter by description is used everything is OK and it clears correctly when the field becomes empty. But, if it filtered by code, the filter group stay on data parameter of filter’s callback function (I understand that it is because the column is controlling description, not code).

    I need to control manually the changes on this filter (only this one without resetting the grid filters). I didn’t want to place a custom filter field just to control this simple mechanism so, how could I get this specific column filter field?

    There is some way to capture the field with grid API or set it a unique identifier without creating a filter widget instead of using common filter field?

    Get current filter value #103208

    areisyus
    Participant

    Sorry, I followed this link from google and didn’t realize that it was for listBox not for grid…

    Get current filter value #103222

    Martin
    Participant

    Hello areisyus,

    I have answered you under the Topic you opened inside the Grid’s category.

    Best Regards,
    Martin

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

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

You must be logged in to reply to this topic.