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
8920
Multiple selection WebDropDown configuration
posted

Need to configure attached multiple selection WDD as following:

  1. Currently every time an item checked/unchecked wdd is getting closed. I need to configure it so user can make multiple choices without interruption and wdd is getting closed when it is losing focus, i.e. user goes to other element of the form.
  1. When user done with all changes and while wdd losing focus I need client event to validate values before post back.. and not let user to leave the control if wrong values chosen.. I do not need all the details just reference to the wddUno.CurrentValue. inside that event that returns true or false and on false brings focus back to the wdd so user can make changes..

Thanks.

igWDD.zip

Parents
No Data
Reply
  • 1320
    Offline posted

    Hello Michael,

    After investigating this further, I determined that the WebDropDown could stay opened after selecting an item by setting the property “EnableClosingDropDownOnSelect” to false. Regarding your second requirement what I could suggest is binding a method to the blur event, getting the current value and if the value is not correct, the focus would be set back to the input of the dropdown:

    function blur(sender, evt) {

                var wdd = $find('<%=wddUno.ClientID%>');           

                if (wdd.get_currentValue().includes("2014")) {

                    wdd._elements["Input"].focus();

                }

            }

    Below I am attaching a sample, demonstrating the described behavior. Please test it on your side and let me know if you need any further information regarding this matter.

    Regards,

    Monika Kirkova,

    Infragistics

    WebDropDownValidate.zip

Children