Determining if item has a child client side

4 posts, 0 answers
  1. tim
    tim avatar
    7 posts
    Member since:
    Mar 2010

    Posted 24 Feb 2011 Link to this post

    Hi,

    If I have a RadTreeList populated with some data, how can I determine client-side if the selected item has a child or not?

    function ItemSelected(sender, args) {
                   var treelist = $find("radTreeList");
                   var selectedIndexes = treelist.get_selectedIndexes();
                     
                   var row = selectedIndexes[0];
                   var item = treelist.getItem(row);
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 24 Feb 2011 Link to this post

    Hi tim,

    There are no RadTreeList client or server APIs to get child items, child count, or parent item from a RadTreeList data item as of current date.

    Veli
    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. tim
    tim avatar
    7 posts
    Member since:
    Mar 2010

    Posted 24 Feb 2011 Link to this post

    Hi Veli,

    Thanks for the reply.

    That seems strange to be honest, I would have thought it would be an obvious thing people would be looking for with this type of control.

  5. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 25 Feb 2011 Link to this post

    RadTreeList will be greatly improved for the future and your feedback on that is appreciated.

    Veli
    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!
Back to Top