jQWidgets Forums

jQuery UI Widgets Forums Lists DropDownList reselect "selectedIndex – 1"

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 9 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • reselect "selectedIndex – 1" #78879

    toskf072
    Participant

    Animal category..

    == ALL ==
    CAT
    DOG
    TIGER
    LION

    I set the value of the ‘placeholder’ as “== ALL ==”.
    Then chose another item. For example, such as a TIGER.
    What should I do if a user has to select again “== ALL ==”?

    reselect "selectedIndex – 1" #78907

    Dimitar
    Participant

    Hello toskf072,

    You just need to call:

    $("#jqxDropDownList").jqxDropDownList('selectIndex', -1);

    Best Regards,
    Dimitar

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

    reselect "selectedIndex – 1" #78951

    toskf072
    Participant

    thank you Dimitar..

    Oh..I think I have the wrong question to you.

    My intention is …

    Not change in the code, the end user can change in the UI.

    The ‘== ALL ==’ item will not be visible on the screen, so the end user can not select the ‘== ALL ==’ item.

    Will not this another way?

    reselect "selectedIndex – 1" #78998

    Dimitar
    Participant

    Hi toskf072,

    The only solution I can think of is adding “== ALL ==” as an item in the source of the dropdownlist. Then, end users will be able to select this option.

    Best Regards,
    Dimitar

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

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

You must be logged in to reply to this topic.