cancel
Showing results for 
Search instead for 
Did you mean: 

Handling check box in Tree control

Former Member
0 Kudos
62

hi,

i am working in CL_GUI_COLUMN_TREE class.Now i want to handle check box in it.that is each row in tree contains check box and there are button each for selecting all check box and as well as deselect all.

how to set default value to check box in the column tree control,i.e.which varible holds the values in this check box.so that i shall check or uncheck the check box based on my requirement.

thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

When you build the nodes of the tree if you mark the item where you want a check box as

" Item is a checkbox

ITEM-CLASS = CL_GUI_COLUMN_TREE=>ITEM_CLASS_CHECKBOX.

By doing so you are making the attribute of the item to be a checkbox.

then it will show a check box in your tree.

Also check the example SAPCOLUMN_TREE_CONTROL_DEMO this has a checkbox in the tree and it explains how to handle the events of a check box also.