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

RadTreeView Child nodes not checked when parent will checked.

1 Answer 308 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Rahul
Top achievements
Rank 1
Rahul asked on 22 Aug 2014, 12:47 PM
Hello All,

I am using the RadTreeView in my project and I want that when I will do checked the parent element then the child node of that parent will automatically checked by the code in the code behind file. I have also attached the scree-shot for the same.

Thanks 
Rahul

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 27 Aug 2014, 06:22 AM
Hello Rahul,

The RadTreeView control have TriState checkbox support. In other words instead of two states (checked, unchecked), there are three (additional indeterminate state). Basically, if you have a tree view item with few child nodes and you check one of the nodes, the parent will go in indeterminate state. If all children are checked, the parent will be checked automatically. If you check the parent, all children will be checked automatically. You can take a look at the CheckBox Support help article for more information on that matter.

However, note that the checkbox support has few known issues and this is why we recommend implementing custom checkbox functionality. You can see how to do it in the Implement a Tri-State CheckBox logic using MVVM help article.

I hope this helps.

Regards,
Martin
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
TreeView
Asked by
Rahul
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or