RadDropDownTree and Enter key

2 posts, 0 answers
  1. Support
    Support avatar
    14 posts
    Member since:
    Feb 2012

    Posted 28 Jul 2016 Link to this post

    Hi, if I open a RadDropDownTree and then I press enter to automatically select all the items.

     

                                                        <telerik:RadDropDownTree RenderMode="Lightweight" ID="RadDropDownTree3" runat="server" Width="100%" CheckBoxes="TriState"
                                                            DefaultMessage="Seleziona la zona" OnNodeDataBound="RadDropDownTree1_NodeDataBound" Skin="Bootstrap" >
                                                            <DropDownSettings />
                                                        </telerik:RadDropDownTree>

     

    You can avoid this behavior ?

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    467 posts

    Posted 02 Aug 2016 Link to this post

    Hello,

    Could you, please explain, what you are trying to achieve? Do you want to prevent the closing of the drop-down after nodes have been selected or something else? If you want to prevent closing you could use the OnClientDropDownClosing event of the widget:
    var cancelClosing = true;
     
    function dropDownClosing(sender, args) {
        args.set_cancel(cancelClosing);
        cancelClosing = false;
    }

    Keep in mind that you will have to implement your own custom logic to prevent closing under the conditions needed. Otherwise you won't be able to close the drop-down at all.

    Regards,
    Veselin Tsvetanov
    Telerik by Progress
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top