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
Close webdropdown after selecting
posted

Is there a way to close the webdropdown when I am done selecting without clicking somewhere to make it close? Can I do this with Javascrptand a mouseout? If so, how?


Thank you.

  • 17559
    posted

    Hello kissthecook,

    I was just wondering did you have a chance to try my suggestion. If you still need any assistance on the matter, please do not hesitate to ask.

  • 17559
    posted

    Hello kissthecook ,

     

    I have been looking into your requirements and I can suggest you handle the mouseleave event of the DropDownListContainer and manually close the drop down in it. In order to do this you can handle the Initialize event of the WebDropDown as follows:

        function init(sender, args) {

            $(".igdd_DropDownListContainer").bind("mouseleave", function () {

                sender.closeDropDown();

             });

        }

     

            <ig:WebDropDown   ID="WebDropDown2"  runat="server" Width="200px"  ClientEvents-Initialize="init"

                EnableMultipleSelection="True" EnableClosingDropDownOnSelect="false"   >

     

     

    If you need any additional assistance on the matter please let me know.