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

CheckBox checks his Parents

3 Answers 33 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Paul asked on 15 Jun 2015, 09:21 AM

Hello,

after adapting your TreeView CheckBox sample (http://demos.telerik.com/kendo-ui/treeview/checkboxes),
I'm experiencing some troubles when using the TreeView with CheckBoxes in 'checkChildren' mode.
The problem is that some items seem to be checking their parent nodes after checking them.
The children are checked correctly, but I don't think that checking the PARENTS does make any sense.
I already tried it with a lot of different nodes, this occurs not all the time.
It seems to happen only with the second root node and the first few children of it.

At first I suspected my items for having equivocal IDs, but they seem to be set appropriately.

I also tried to comment the "onCheck" and the "checkedNodeIds" function but this does not affect the behavior in any way either.

I hope you can provide help on this issue,
thanks in advance.

Ronald

3 Answers, 1 is accepted

Sort by
0
Paul
Top achievements
Rank 1
answered on 16 Jun 2015, 07:03 AM

Hi,

I just updated my sources to the latest version.
Unfortunately, my problem still resists.

Thanks,

Ronald

0
Alexander Popov
Telerik team
answered on 17 Jun 2015, 07:15 AM
Hello Ronald,

Setting the parent node's checkbox to undetermined state is expected and is by-design. Checking all child nodes should set the parent checkbox to checked (see screencast). This behavior could be avoided by disabling the checkChildren option.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Paul
Top achievements
Rank 1
answered on 17 Jun 2015, 11:54 AM

Hi Alexander,

thank you for the clarification.

Regards,
Ronald

Tags
TreeView
Asked by
Paul
Top achievements
Rank 1
Answers by
Paul
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or