TreeView OnSelected event

5 posts, 0 answers
  1. swegele
    swegele avatar
    20 posts
    Member since:
    Apr 2007

    Posted 28 Dec 2015 Link to this post

    Guys honestly wouldn't it be easy to add an OnClientSelected event to TreeView?  I see you are changing the Div class from "rtBot" to "rtBot rtSelected".  So you know it is happening.  So many people have asked about this over the years and I find it annoying to try and do a hack with the OnKeyPressed.

     Please?

     

    Sean

     

  2. swegele
    swegele avatar
    20 posts
    Member since:
    Apr 2007

    Posted 28 Dec 2015 Link to this post

    If you can't do OnClientNodeSeledted then how about a OnClientNodeHighlighted event?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 31 Dec 2015 Link to this post

    Hello Sean,

    We can suggest logging a feature request in our Feedback Portal for the addition of an OnClientNodeSelected event for the TreeView. Highly demanded features often get implemented in future releases.

    Regards,
    Ivan Danchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. swegele
    swegele avatar
    20 posts
    Member since:
    Apr 2007

    Posted 31 Dec 2015 in reply to Ivan Danchev Link to this post

    I added a request.  Thank you.

    In the meantime, do you think it is possible using $ jQuery to write a quick example of subscribing to <li> elements in the tree-view watching for addition of the class="rtSelected"?

    This might give us a work-around in the meantime?

    Thank you.

  6. Ivan Danchev
    Admin
    Ivan Danchev avatar
    829 posts

    Posted 05 Jan Link to this post

    Hello Sean,

    You could try Rory's solution posted in the following stackoverflow thread in order to detect a change in the class of the topmost TreeView node's div element (the div with class rtTop):
    var $div = $(".rtTop");
    Any change of the class will be reflected in the attributeValue variable's value.

    Regards,
    Ivan Danchev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017