How to get checked/Unchecked Nodes and its children in kendo Treeview

4 posts, 0 answers
  1. Srikanth
    Srikanth avatar
    4 posts
    Member since:
    Mar 2013

    Posted 31 Mar 2013 Link to this post


    Could anybody suggest me to get checked/Unchecked nodes  and its children in Kendo Treeview.

  2. Dimiter Madjarov
    Dimiter Madjarov avatar
    2213 posts

    Posted 01 Apr 2013 Link to this post

    Hi Srikanth,

    You could get the checked/unchecked nodes easily via jQuery selectors.
    //all checked items
    $("#treeview .k-item input[type=checkbox]:checked").closest(".k-item");

    //children of checked items
    $("#treeview .k-item input[type=checkbox]:checked").closest(".k-item").find(".k-group .k-item");

    Wish you a great day!


    All the best,
    Dimiter Madjarov
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Chad
    Chad avatar
    1 posts
    Member since:
    Oct 2015

    Posted 03 Mar 2016 in reply to Dimiter Madjarov Link to this post

    I am trying to store the results from this into a variable Array and then pass it to the controller method using ajax. How would I do this? Everything I have tried has not worked. 
  4. Dimiter Madjarov
    Dimiter Madjarov avatar
    2213 posts

    Posted 07 Mar 2016 Link to this post

    Hello Chad,

    The following demo shows how to gather the ids of the checked nodes in an array. Some good examples on passing the array to the controller could be found on the following pages here or here.

    Dimiter Madjarov
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top