Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
500
Clear Multi-Select WebDropDown Client Side
posted

Hi,

 

I have  a webdropdown with enable multiple selection  set to true. I want to clear the checked chekboxes within the drop down on rthe client side using Javascript. I referred to http://community.infragistics.com/forums/p/30177/161244.aspx#161244 which shows how to do this for a single selection dropdown.

how do I clear the multi-select dropdown and reset the current value to say "select"?

This is the code from the other post for single selectio which does not work for the multi-select.

<script type="text/javascript">

        function clearSelection() {

 

            var dropDown = $find("WebDropDown1");

            var item = dropDown.get_items().getItem(dropDown.get_selectedItemIndex());

            if (item != null) {

 

                item.unselect();

                item.inactivate();

                // optionally, clear input text

                // dropDown.set_currentValue("",true);

            }

            return false;

 

        }

 

Thank you.

Parents
  • 7499
    posted

    Dear longpond

    Thank you for contacting Infragistics!

    We received your support request concerning clearing the items for the multiselect Webdropdown, and this case has been assigned to me. Infragistics is dedicated to helping you solve this issue.

    I am looking into this issue and will get back to you by the end of the day Wednesday with more information.

     

Reply Children