DHTML JavaScript Grid samples
Using Grid API Methods
Manipulate grid content, appearence and functionlity using wide range of Grid API methods
//...See Documentation for complete list of Grid API Methods and some details of their usage
clearAll
setHeaderCol
copyRowContent (ex.:from first to selected)
clearSelection
setSelectedRow (ex.:second)
setEditable (ex.:on/off)
setUserData (ex.: to selected row)
getUserData (ex.: of selected row)
cells.getValue (ex.: of selected cell)
cells2.getValue (ex.: of selected cell)
moveRowDown (ex.:selected)
moveRowUp (ex.:selected)
getColumnCount
getRowsNum
getAllItemIds
isItemExists (with id=14)
setRowTextStyle (ex.:selected)
setRowTextBold (ex.:selected)
setRowTextNormal (ex.:selected)
setColumnIds (A,B)
getColumnId (ex.:first)
getColIndexById (ex.: B)
setRowId (ex.: selected)
getRowId (ex.:selected)
getRowIndex (ex.:selected)
getColWidth (ex.:of selected cell)
getSelectedCellIndex
getSelectedId
deleteSelectedItem
deleteRow (ex.: selected)
setMultiselect (on/off)
addRow (ex.:second position)
selectRow (ex.:first one)
selectCell (ex.: second cell of second row)
attachToObject
Go to the dhtmlxGrid main page or Close this page