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

Close Control After Selection

10 Answers 90 Views
DropDownTree
This is a migrated thread and some comments may be shown as answers.
Billy
Top achievements
Rank 1
Billy asked on 10 Apr 2013, 04:20 PM
I am after similair functionality as this demo example for combobox:

http://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/treeviewcombobox/defaultcs.aspx?product=combobox

Is there anyway to close the control after a selection has been made after the first level in the tree?

10 Answers, 1 is accepted

Sort by
0
Billy
Top achievements
Rank 1
answered on 10 Apr 2013, 08:56 PM
I found out I could use

    function onEntryAdded(sender, eventArgs) {
        sender.closeDropDown();
        $(".rddtInner").removeClass("rddtFocused");
}

However, this stops the OnEntryAdded postback event from working correctly.

I also removed the rddtFocused class because closing the dropdown still looked clicked.



0
Peter Filipov
Telerik team
answered on 12 Apr 2013, 09:41 AM
Hi Billy,

We are going to expose such functionality out of the box for the upcoming release - Q2.2013.

Regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
robert
Top achievements
Rank 1
answered on 19 Apr 2013, 07:58 PM
Hi. Do you have a planned release date or a temporary fix for this issue?

Thank you!
0
Peter Filipov
Telerik team
answered on 24 Apr 2013, 06:44 AM
Hi Robert,

As a temporary solution you could use the following approach. Handle the OnClientEntryAdded and close the drop down after a certain time.
function OnClientEntryAdded(sender, args) {
    setTimeout(function () { sender.closeDropDown(); }, 200);
}


Regards,
Peter Filipov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Curtis
Top achievements
Rank 1
answered on 25 Jul 2013, 05:48 AM
Hello, was this functionality ever added out of the box to the control?

We too would like it to auto-close after selecting an item in the tree.
0
Peter Filipov
Telerik team
answered on 26 Jul 2013, 08:54 AM
Hi Curtis,

The desired functionality is in our TODO list. As soon as we could we are going to introduce that feature.

Regards,
Peter Filipov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Tarang
Top achievements
Rank 1
answered on 31 Jul 2013, 05:00 PM
We are using 2013.2.717.40 (July 17 2013) release. Still this feature is missing. Any idea when it will be available??
0
Peter Filipov
Telerik team
answered on 01 Aug 2013, 11:31 AM
Hi Tarang,

I am afraid that I could not give you an exact time frame when the feature will be available. Until then you could use provided sample code as a temporary solution.

Regards,
Peter Filipov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
César
Top achievements
Rank 1
answered on 06 Nov 2013, 05:13 PM
Hi,

I am also looking for this functionality. I've tried the workarounds that you are suggesting, like :

setTimeout(function () { sender.closeDropDown(); }, 200);

Or

sender.closeDropDown();
And they work ok with the mouse, but not with the Keybard, as each arrow press is raising this event as well, so it breaks the accessibility of the control. Please have this point into account when implementing this feature. Thanks


0
Peter Filipov
Telerik team
answered on 11 Nov 2013, 09:30 AM
Hi C├ęsar,

The feature is in a development phase. It is going to work as you expected. For now it is not possible to workaround it.

Regards,
Peter Filipov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
DropDownTree
Asked by
Billy
Top achievements
Rank 1
Answers by
Billy
Top achievements
Rank 1
Peter Filipov
Telerik team
robert
Top achievements
Rank 1
Curtis
Top achievements
Rank 1
Tarang
Top achievements
Rank 1
César
Top achievements
Rank 1
Share this question
or