SMART datagrid v1.4 > Classes > GridBase
DataLudi.GridBase.getCheckedDataIndices method
현재 checked 상태의 행들의 dataIndex를 배열로 리턴한다.
function getCheckedDataIndices (visibleOnly: Boolean): [Integer];
- Returns
- [Integer]
- Parameters
- visibleOnly - Boolean. 기본값은 false.
Code -1
$('#deleteChecked').click(function (ev) {
var rows = grid.getCheckedDataIndices();
if (rows && rows.length > 0) {
ds.deleteRows(rows);
}
});
- See Also
- getCheckedRowIndices
- getCheckedRows
- isChecked
- setChecked
- checkRows
- isCheckable
- GridView.getDataIndicesOfRows
- GridDataSet.deleteRows
- Examples
- Check Bar