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
1410
How to close webdropdown if it remains open
posted

Hi,

I have seen that the webdropdown remains open after the page-load. May I know how to close a webdropdon in javascript once I am done with a specific operation.

  • 49378
    Verified Answer
    posted

    Hello Sunil,

    Thank you for posting in the community.

    WebDropDown may be closed using thecloseDropDownjavascript function. As the dropdown remains open after a postback in this scenario I would suggest handling theInitializeclientside event and setting a small timeout before closing the item container. For instance:

    function WebDropDown1_Initialize(sender, eventArgs) {     setTimeout("ig_controls.WebDropDown1.closeDropDown();", 100); }

    Please let me know if this helps.