CheckBox checks his Parents

4 posts, 0 answers
  1. Paul
    Paul avatar
    3 posts
    Member since:
    Oct 2014

    Posted 15 Jun 2015 Link to this post

    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

  2. Paul
    Paul avatar
    3 posts
    Member since:
    Oct 2014

    Posted 16 Jun 2015 in reply to Paul Link to this post

    Hi,

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

    Thanks,

    Ronald

  3. Kendo UI is VS 2017 Ready
  4. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 17 Jun 2015 Link to this post

    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!
     
  5. Paul
    Paul avatar
    3 posts
    Member since:
    Oct 2014

    Posted 17 Jun 2015 in reply to Alexander Popov Link to this post

    Hi Alexander,

    thank you for the clarification.

    Regards,
    Ronald

Back to Top
Kendo UI is VS 2017 Ready