Skip to content

Commit

Permalink
fixed typo , sample for tree selection functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephan Wald committed Jan 18, 2018
1 parent afee230 commit 09c7fab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion BBjGridExWidget.bbj
Expand Up @@ -121,14 +121,18 @@ class public BBjGridExWidget extends BBjWidget
rem * When false, then the group is selectable independently of the child nodes
rem */
method public void setGroupSelectsChildren(BBjNumber x!)

rem this only makes sense with mutli-selection switched on!
#setMultipleSelection(1)

#groupSelectsChildren=x!
methodend

rem /**
rem * When true, selection box will be show on the first column
rem * When false, no checkbox will be displayed
rem */
method public void seShowSelectionCheckbox(BBjNumber x!)
method public void setShowSelectionCheckbox(BBjNumber x!)
#showSelectionCheckbox=x!
methodend

Expand Down
2 changes: 1 addition & 1 deletion Demo/SelectionDemo.bbj
Expand Up @@ -112,7 +112,7 @@ return

onUseCheckbox:
useCheckbox = cb!.isSelected()
grid!.seShowSelectionCheckbox(useCheckbox)
grid!.setShowSelectionCheckbox(useCheckbox)

rem this definition requires a refresh!
gosub fillGrid
Expand Down
3 changes: 3 additions & 0 deletions Demo/TreeDemo.bbj
Expand Up @@ -125,6 +125,9 @@ fillGrid:
grid!.pinColumn("SALES_YTD","right")
grid!.pinColumn("SALES_LY","right")

grid!.setShowSelectionCheckbox(1)
grid!.setGroupSelectsChildren(1)


grid!.setData(dt!)

Expand Down

0 comments on commit 09c7fab

Please sign in to comment.