jQWidgets Forums

jQuery UI Widgets Forums Grid Open and close dropdownlist raises filter event in grid

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years ago.

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

  • williamtourinho
    Participant

    Hi, I have a custom my grid column with a custom filterwidgets for the filterrow. The code:

    createfilterwidget: function(column, columnElement, widget)
    {
    var listOrdered = GetOrderItemsForColumnA();
    widget.jqxDropDownList({ source: listOrdered , dropDownWidth: 130 });
    widget.jqxDropDownList('checkAll');
    }

    I have done this solution to put the items ordered in the checked list. But, i needed to call the “checkAll” method to make all items checked.
    But, if I do the “checkAll” method, when the user opens the jqxDropDownList and closes without checking any item, the grid raises the filter event.

    Do you know how can I avoid this behavior? Can I check the items without calling the “checkAll” method when creating the jqxDropDownList? Can I avoid the filter event when the user opens the jqxDropDownList and close it without doing nothing?

    Thank you!


    Peter Stoev
    Keymaster

    Hi williamtourinho,

    If the filter widget is a “checkedlist”, the Grid applies a filter when the dropdownlist is closed. That is the default behavior. The widget is bound to the “close” event. If you want to disable this behavior, you will have to unbind from the “close” event.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.