SMART datagrid v.1 > Classes > GridView
DataLudi.GridView.setHidden method
Specify the hidden state of data rows specified by row.
function setHidden (row: GridRow|Integer, hidden: Boolean): Boolean;
- Returns
- Boolean
- Parameters
- row - GridRow|Integer. required.
The object of grid row or the index of data row.
- hidden - Boolean. required.
If it is true, it will hide the row.
- Note
- The hidden state of grid row is different from not displaying descendant rows due to closing group row. If specify as hidden state, it will not create the rows in grid row model level.
- The hidden state cannot be Undone.
Code -1
$('#hideRow').click(function () {
var row = grid.focusedRow();
row && grid.setHidden(row, true);
});
- See Also
- isHidden
- setHiddenRows
- unhideAllRows
- getHiddenRows
- hiddenRowCount
- Examples
- Hidden Rows