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

Determining if item has a child client side

3 Answers 58 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
tim
Top achievements
Rank 1
tim asked on 24 Feb 2011, 11:46 AM
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);

3 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 24 Feb 2011, 03:13 PM
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!
0
tim
Top achievements
Rank 1
answered on 24 Feb 2011, 04:23 PM
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.

0
Veli
Telerik team
answered on 25 Feb 2011, 11:28 AM
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!
Tags
TreeList
Asked by
tim
Top achievements
Rank 1
Answers by
Veli
Telerik team
tim
Top achievements
Rank 1
Share this question
or