I have a TreeGrid with selection appearence set to checkbox.
TreeGrid resultGrid = new TreeGrid();
resultGrid.setSelectionAppearance(SelectionAppearance.CHECKBOX);
I want some records to be drawn without these checkboxes(in case record is disabled).
I found property showDisabledSelectionCheckbox, which description says:
Should tree nodes show a disabled checkbox instead of a blank space when selectionAppearance:”checkbox” is set on the treegrid, and a node can’t be selected?
How I can make the node “unselectable” except setting :
node.setEnabled(false);
And how this property(showDisabledSelectionCheckbox) works?
TreeGridhas selection property that can be set viaSo setting this property on
TreeNodeswill define if nodes could be selected.By default one can just use “canSelect” property.
So this line of code will disable selection of the particular node.
And if selection appearance is set to
SelectionAppearance.CHECKBOX, checkboxes won’t be drawn near nodes which couldn’t be selected.This is the only way I’ve found.