SMART datagrid v.1 > Classes > ColumnGroup
DataLudi.ColumnGroup.setChildrenProperty method
It sets the property of the included columns all to the same value. If recurive is true, it will set the property of all child columns besides the columns of just below. If visibleOnly is true, it will only change the property of the columns being displayed.
function setChildrenProperty (prop: String, value: *, recursive: Boolean, visibleOnly: Boolean);
- Returns
- Void
- Parameters
- prop - String. required.
The property name.
- value - *. required.
The setting value.
- recursive - Boolean. required.
If it is true, it will set the property of all child columns except the child column just below.
- visibleOnly - Boolean. required.
If it is true, it will change only the property of columns which are displayed now.
Code -1
$('#arrange').click(function () {
var group = grid.focusedIndex().group();
if (group) {
group.setChildrenProperty('width', 100);
}
}
- See Also
- GridBase.setColumnsProperty
- DLBase.setProperty
- Examples
- Column Grouping