Children of selected parent node

2 posts, 0 answers
  1. kiran
    kiran avatar
    2 posts
    Member since:
    Jun 2016

    Posted 01 Aug Link to this post

    Consider the following example: http://embed.plnkr.co/AZsXtbXTpaswliEoE2fq/

     

    When checking child nodes you can see that the console.log outputs the correct child nodes. When selecting a parent node I get an event for the parent node specifically and the children are programmatically checked as the parent is checked. 

    Is there an easy way to know which child nodes gets selected. I'm only really interested in the check state of the deepest level. 

     

     

  2. Stefan
    Admin
    Stefan avatar
    276 posts

    Posted 03 Aug Link to this post

    Hello Kiran,

    I am not sure I completely understand what you are trying to achieve. However, the selected node can be found in the select event of the TreeView. The select event is giving access to the e.node element, which represents the selected node:

    http://docs.telerik.com/kendo-ui/api/javascript/ui/treeview#events-select

    Let me know if you need additional assistance with the Kendo UI TreeView API.

    Regards,
    Stefan
    Telerik by Progress
     
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
  3. Kendo UI is VS 2017 Ready
Back to Top