SMART datagrid v.1 > Classes > GridBase
DataLudi.GridBase.checkAll method
Reset checked state of all Grid Rows by checked parameter value.
If checked state of at least one row is changed, onAllChecked event will be fired. And, if specify rowEvents as true, onRowChecked event will be fired in each changed row.
function checkAll (checked: Boolean, visibleOnly: Boolean, checkableOnly: Boolean, callback: Function, rowEvents: Boolean);
- Returns
- Void
- Parameters
- checked - Boolean. required.
- visibleOnly - Boolean. Defaults to false.
It only changes the state of rows which are displayed now.
- checkableOnly - Boolean. Defaults to false.
It only changes rows of which
checkable is
true.
- callback - Function. Defaults to null.
Callback function which returns whether to change.
function (row:GridRow):Boolean;
- rowEvents - Boolean. Defaults to false.
If it is
true, whenever change the checked state of each row,
onRowChecked event will be fired. (ver 1.3.4)
Code -1
$('#btnCheckAll').click(function () {
grid.checkAll();
});
- See Alos
- isChecked
- setChecked
- checkRows
- onAllChecked
- onRowChecked
- Examples
- Check Bar