TreeGrid v6.0
Bool type
Bool is boolean type contains only two values 0 and 1.
Or it is possible to show three states (“”, 0, 1) when set CanEmpty=’1’.
It is shown as checkbox or radio button.
It supports radio groups – only one radio inside group can be checked.
Filter cell Bool type button automatically hides operator menu and sets CanEmpty=’1’ to have filter off option.
<C> <cell> string Type [“Text”] Type=”Bool” .
To define Bool type, set column or cell attribute Type to “Bool”
<C> <cell> int CanEmpty [0] new 6.0 .
If the Bool cell can be empty.
If set, the Bool cell supports three states: “”, 0, 1.
The states are cycled on click – for CanEmpty = 1 is (“”,1,0), for 2 is (“”,0,1).
CanEmpty is supported only by BoolIcon = 0 or 2 and ignores BoolGroup.
If set, filter shows operator menu to let a use filter according to all three values.
<C> <cell> int BoolIcon [0] new 6.0 .
Which icon will displayed in the cell.
0 Checkbox image
1 Radio button image
2 Checkbox image vertically centered, slightly slower than 0
3 Radio button image vertically centered, slightly slower than 0
4 <input type=’checkbox’>, it is faster than icons especially in IE, use it when many Bools are rendered in grid (500+).
5 <input type=’radio’>, it is faster than icons especially in IE, use it when many Bools are rendered in grid (500+).
6 X or , it is faster than icons especially in IE strict mode, use it when many Bools are rendered in grid (500+).
<Cfg> int BoolChars [“ X?”] new 6.0 .
Three characters to show in Bool type cell with BoolIcon=’6’.
In order for 0, 1, empty.
<C> <cell> int BoolGroup [0] new 6.0 .
An index of radio group of Bool cells in column.
Only one cell in the group of rows (with the same BoolGroup) can be checked.
When a user checks some radio, the previously checked radio in the group is unchecked.
<C> <cell> int Radio [0] new 6.0 .
An index of radio group of Bool cells in row.
Only one cell in the group of cells (with the same Radio) can be checked.
When a user checks some radio, the previously checked radio in the group is unchecked.
<C> <cell> bool Uncheck [0] new 6.0 .
If all the checkboxes with the same BoolGroup or Radio can be empty – a user can uncheck the checked radio.
<Actions> ChangeBool ...F Attached to events OnEnter, OnSpaceEdit, OnClickEditBool .
Changes the cell value