This is a migrated thread and some comments may be shown as answers.

RadDropDownTree and Enter key

1 Answer 52 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Support
Top achievements
Rank 2
Support asked on 28 Jul 2016, 09:02 AM

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 ?

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 02 Aug 2016, 07:17 AM
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.
Tags
DropDownTree
Asked by
Support
Top achievements
Rank 2
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or