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
504
re-select same item with a click?
posted

Is it possible to allow users to click on an already-selected item in a dropdown, and have the dropdown close? I'd like to do this both with a plain WebDropDown, and one that contains a WebDataGrid for multicolumn display.

Parents
No Data
Reply
  • 504
    posted

    When the WebDropDown contains a WebDataGrid, I can use 

    <ig:WebDataGrid ID="wdgMyList" runat="server" AutoGenerateColumns="False" 
     DataSourceID="dsMySource" ShowHeader="False" ClientEvents-MouseUp="ddMyList_close">

    function ddMyList_close(sender, e) {
       var ddMyDD = $find('<%=ddMyDD.ClientID %>');
       ddMyDD.closeDropDown();
    }

    Still unsure how to handle a plain WebDropDown that doesn't contain a grid.

Children