[Solved] Display count of children on treeView nodes

1 Answer 10 Views
TreeView
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Lee asked on 11 Mar 2026, 01:25 PM
I am using the kendo treeview and need to display a count of the children on the node. How would I do this? I've tried the other solutions such as item.children.view() and item.children.data() but those always return 0. I've also set loadOnDemand to false which has no effect. 

1 Answer, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 13 Mar 2026, 12:28 PM

Hi Lee,

Thank you for reaching out to us.

I have answered your question in the other thread, however, I will also add it here for visibility. The sample below uses the dataBound event to iterate through the items and gets the number of children for each parent node. Then appends a badge element with the count:

https://dojo.telerik.com/zMABgMdh/3

Let me know how this works for you.

Regards,
Viktor Tachev
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
commented on 13 Mar 2026, 03:40 PM

Thanks. I guess the count isn't available at the template level. 
Tags
TreeView
Asked by
Lee
Top achievements
Rank 2
Bronze
Bronze
Bronze
Answers by
Viktor Tachev
Telerik team
Share this question
or