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
310
webdropdown old feature missing, click
posted

I noticed the new webdropdown is missing a cool feature, click event,  the listdropdowncontainer is only displayed now when user clicks in the button arrow, but if the user click in the items section, it doesnt display

in previous version it displayed, 11.1

tanks

Parents
No Data
Reply
  • 10685
    Suggested Answer
    Offline posted

    Hello,

    In case you would like to use it, it is possible to implement similar functionality. One approach that comes in mind is using jQuery for example and handling the input click event to open the WebDropDown container. Keep in mind, it will require you to ensure the DOM is existing when attaching to the input(https://api.jquery.com/ready/)

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>    <script>
            $(document).ready(function () {
                $(".igdd_ValueDisplay").click(function () {
                    ig_controls.WebDropDown1.openDropDown();
                });
            });
        </script>
    </head>

    <body>
        <form id="form1" runat="server">
            <div>
                <ig:WebScriptManager ID="WebScriptManager1" runat="server"></ig:WebScriptManager>
                <ig:WebDropDown ID="WebDropDown1" runat="server" Width="200px"   DisplayMode="DropDown">   
                </ig:WebDropDown>
            </div>
        </form>
    </body>
    </html>

Children