jQWidgets Forums

jQuery UI Widgets Forums Grid filterrow checkedlist custom:order

This topic contains 2 replies, has 2 voices, and was last updated by  antrax13 7 years, 8 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • filterrow checkedlist custom:order #95543

    antrax13
    Participant

    Hi I have a filterrow(checkedlist) for grid with following values A,B,C.

    Values in dropdown(checkedlist) are sorted alphabetically A,B,C but I need to sort values in checkedlist as A,C,B

    Is this posible?

    filterrow checkedlist custom:order #95555

    Stanislav
    Participant

    Hello antrax13,

    When you open the dropdown filter menu, it will always be sorted in an alphabetical order.
    You can use filteritems, you can set the items order any way you want it to be.

    Example:
    text: 'Product', filtertype: 'checkedlist', datafield: 'productname', width: 220, filteritems: ['a', 'd', 'b']

    Best Regards,
    Stanislav

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

    filterrow checkedlist custom:order #95581

    antrax13
    Participant

    Stanislav.

    Thanks, it has sorted the order of dropdown filter menu.

    However new issue raised.

    If I remove row that contains value ‘a’ this value is still available for selection in dropdown filter however there is no such a row with this value therefor it should not be there.

    I was expecting to have following values in dropdown filter [‘d’,’b’] not [‘a’, ‘d’, ‘b’].

    Same is happening if I would add into filter value that will not exists [‘a’, ‘d’, ‘b’, ‘value that is not in grid’] then ‘value that is not in grid’ is still showing as an option in dropdown filter.

    So the question is: is there a way to refresh dropdown filter options and get rid of options that are not in grid but still keep the order?

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

You must be logged in to reply to this topic.