Check documentation for the latest version of dhtmlxSuite addRow DHTMLX Docs

addRow

adds a row to treegrid

void addRow(string|number new_id,array text,number ind,string|number parent_id,string img,boolean child);
new_idstring|numbernew row id
textarrayan array of cell labels in a row
indnumberposition of a row (set to null, for using parentId)
parent_idstring|numberid of the parent row
imgstringimg url for new row
childbooleanchild flag (optional)

Example

myTreeGrid.addRow("new_id",["col1_value","col2_value","col3_value"],0,"parent_row",
"folder.img",true);

Back to top