Announcement

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

    Select by condition in TreeGrid

    Hello

    Help me please. I am using TreeGrid.
    I am writing

    g.setSelectionAppearance(SelectionAppearance.CHECKBOX);
    g.setSelectionType(SelectionStyle.SIMPLE);

    And at the begining of the each row appear checkboxes.
    But, i need to make some rows 'unselectable'. So i need ability to show checkboxes on some rows, and do not show on others. How can i do it?

    #2
    You can use the canSelectProperty on individual nodes.

    Comment


      #3
      There is no method setCanSelect in the TreeNode class, what did you mean?

      Comment


        #4
        Use TreeNode.setAttribute("canSelect", false); The actual attribute "canSelect" itself that is used for determining if a record / node can be selected can be controlled using the ListGrid.setRecordCanSelectProperty(..) API.

        Comment

        Working...
        X