Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Select parent to select all children in checkbox TreeGrid

    Is there a property of TreeGrid to set where if a parent checkbox is selected, all of its children are selected as well? Thanks!

    #2
    Yes - treeGrid.setCascadeSelection(true)

    Comment


      #3
      Thanks for the quick reply!

      Comment


        #4
        Per the documentation for setCascadeSelection:
        "Should children be selected when parent is selected? And should parent be selected when any child is selected? "

        What about when I only want the children to be selected?
        The scenario I have is, given a tree of folders and files, when the user selects the folder, I want all the files and sub-folders in that folder to be selected as well.

        Yes, setCascadeSelection does this. But it also selects all parent folders.
        So deleting c:\temp means deleting c:\ as well.

        Is there a way to only select the children?

        Comment

        Working...
        X