Close Control After Selection

11 posts, 0 answers
  1. Billy
    Billy avatar
    5 posts
    Member since:
    Feb 2012

    Posted 10 Apr 2013 Link to this post

    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?
  2. Billy
    Billy avatar
    5 posts
    Member since:
    Feb 2012

    Posted 10 Apr 2013 Link to this post

    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.



  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 12 Apr 2013 Link to this post

    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.
  5. robert
    robert avatar
    4 posts
    Member since:
    Oct 2011

    Posted 19 Apr 2013 Link to this post

    Hi. Do you have a planned release date or a temporary fix for this issue?

    Thank you!
  6. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 24 Apr 2013 Link to this post

    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.
  7. Curtis
    Curtis avatar
    23 posts
    Member since:
    Jan 2008

    Posted 25 Jul 2013 Link to this post

    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.
  8. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 26 Jul 2013 Link to this post

    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.
  9. Tarang
    Tarang avatar
    11 posts
    Member since:
    Jun 2013

    Posted 31 Jul 2013 Link to this post

    We are using 2013.2.717.40 (July 17 2013) release. Still this feature is missing. Any idea when it will be available??
  10. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 01 Aug 2013 Link to this post

    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.
  11. César
    César avatar
    14 posts
    Member since:
    Sep 2013

    Posted 06 Nov 2013 Link to this post

    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


  12. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 11 Nov 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017