Filtered nodes still included in parent check state

4 posts, 0 answers
  1. Mike
    Mike avatar
    17 posts
    Member since:
    Jul 2010

    Posted 13 Oct 2014 Link to this post

    I'm creating a file explorer of sorts in which the selected node of the treeview on the left updates the content of the grid on the right. And when an item is checked in either widget the other shows it checked too. The treeview filters out the "File" type nodes and only displays the "Folder" type. I need the treeview to show a that a "Folder" node has child items checked if a "File" type node was checked in the grid on the right. However, when a node is filtered out it is no longer considered as a child of it's parent. How can I accomplish this?
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 14 Oct 2014 Link to this post

    Hello Mike,

    The indeterminate state is not refreshed on each dataSource change for performance reasons -- calculating the state requires traversal through most of the treeview nodes. Call the updateIndeterminate method to refresh the indeterminate state after modifying the DataSource.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Kendo UI is VS 2017 Ready
  4. Mike
    Mike avatar
    17 posts
    Member since:
    Jul 2010

    Posted 31 Oct 2014 in reply to Alex Gyoshev Link to this post

    What I'm looking for is the indeterminate start to include the items that have been filtered out. So a 'Folder' node in the tree will show the indeterminate check if a 'File' node has been selected, even though the 'File' type is filtered out.

    Is this not possible?
  5. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 03 Nov 2014 Link to this post

    Hello Mike,

    I'm afraid that this is not supported by the TreeView at this time -- the checked nodes are only inferred from the rendered checkboxes. If you need to change this, you can disable the out-of-the box checkChildren functionality and implement another algorithm, using the TreeView check event.

    Regards,
    Alex Gyoshev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top
Kendo UI is VS 2017 Ready