jQuery UI Widgets Forums Grid Change filtercondition when filtertype is 'list' ?

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

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

  • jacks
    Participant

    The filtercondition column property will only determine the filter condition of columns with filtertype of ‘textbox’ or ‘number’ – is there a way to change filtercondition for filtertype “list” ?

    Alternately, how is filtercondition changed if the createfilterwidget function is employed ? When I use this everything works fine except I need to change filtercondition from default “Equals” to “contains”.

    I unsuccessfully tried adding property searchmode:”contains” to the DropDownList widget in the following fragment:

    createfilterwidget: function (column, htmlElement, widget) {
                                widget.jqxDropDownList({ displayMember:  "label", valueMember:"value"				
    			});

    thanks!


    Peter Stoev
    Keymaster

    Hi jacks,

    No. It’s Equal always with such type of filter. It displays a List of items and when you choose an item the Grid displays cells with values equal to the selected item.

    Best Regards,
    Peter Stoev

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


    jacks
    Participant

    Thanks Peter!
    Will this work if I use createfilterwidget to create my dropdown in the filterrow and then manage the ‘on Select’ events using the API to set the filterconditions property as I like? If not, is there an alternate way to build the dropdown in this location?

    I could put everything in a separate filter panel but much prefer using filter bar placements – (PS I *love* this framework!)

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

You must be logged in to reply to this topic.