jQuery UI Widgets Forums Lists DropDownList Hide groups on seach

This topic contains 5 replies, has 2 voices, and was last updated by  Hristo 1 year ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Hide groups on seach #104316

    fandar
    Participant

    Hello,

    is there a way to hide categories(groups) from the list on filtering?

    Here is an example
    http://jsfiddle.net/j8epvqfb/

    We have 3 groups here (A,B,C) When I filter lets say by ‘c2’ so there arent any data for the other two groups (A,B) to show. I would like these groups to be hidden.

    jqxdropdown filter groups

    Thank You in advance

    • This topic was modified 1 year ago by  fandar.
    Hide groups on seach #104326

    Hristo
    Participant

    Hello fandar,

    I tested this example and it seems to work fine:
    http://jsfiddle.net/txhi/9a5m4hfd/
    It shows only the items that contains value as in the filtered value.
    Could you provide an example with your scenario?
    If you want to filtering with specific searching mode then you could use some of the searchMode options (as containsignorecase).

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    Hide groups on seach #104335

    fandar
    Participant

    Hello,

    thank you for your reply but the issue is with categories (groups)

    http://jsfiddle.net/91qcr7g6/

    open the dropdown.. search for lets say “c3” You will see that ‘A’ and ‘B’ categories still shows up

    Thank You

    Hide groups on seach #104381

    Hristo
    Participant

    Hello fandar,

    This is a default behavior.
    If you could override it then I would like to suggest you try to use the renderer(index, label, value).
    This will be useful for your case.
    Please, let me know if you have trouble with this implementation.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

    Hide groups on seach #104417

    fandar
    Participant

    Hello,

    thanks for the reply.
    Could you provide an example please?

    I can undestand that with this renderer function I can filter groups based on the index=-1 value. But how can I determine when the group doesnt have any items and should not be shown when filtering?

    Thank You in advance

    Hide groups on seach #104447

    Hristo
    Participant

    Hello fandar,

    It is a specific case.
    Unfortunately, I am not able to provide you a better solution.
    Please, take a look at this example, it demonstrate particular state.
    Thank you for your understanding.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.