Selection

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 28 Feb 2011 Link to this post

    How do I get the clientside selected data key?  Only thing I can find is DisplayIndex....and not sure if that's what I want (does the display index change for an item if it's collapsed and thus hidden?)
  2. Tsvetina
    Admin
    Tsvetina avatar
    1873 posts

    Posted 01 Mar 2011 Link to this post

    Hello Steve,

    As of current, the RadTreeList client-side API does not expose the DataKeyValue, so it cannot be accessed directly. A possible way would be, if you have a column displaying this value, to get hold of the HTML element of the selected item and access the textContent of the cell in question, similar to:

    function itemSelect(sender, eventArgs) { 
        var item = eventArgs.get_item(); 
        alert(item.get_element().cells[3].textContent); 
    }

    This, however, may be hard to use, having in mind that the expand collapse buttons also take up cells.

    Another thing you could try would be to register on the client the needed values from the ItemDataBound event of the RadTreeList control.

    Regards,
    Tsvetina
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris
    Chris avatar
    9 posts
    Member since:
    Sep 2012

    Posted 09 Jun 2011 Link to this post

    When will this be added to this control?  Your other controls have this already.

    "Another thing you could try would be to register on the client the needed values from the ItemDataBound event of the RadTreeList control."

    What do you mean by this do you have an example?

    We are trying to implement a client side row click that opens a new window passing some parameters to the url of the new window based on the row that is selected.
  5. Iana Tsolova
    Admin
    Iana Tsolova avatar
    3388 posts

    Posted 13 Jun 2011 Link to this post

    Hello Chris,

    We are enhancing the RadTreeList client-side API now and after the Q2 2011 release you would be able to use a built-in methods to achieve your goal.

    Kind regards,
    Iana
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top