Check documentation for the latest version of dhtmlxSuite addRowAfter DHTMLX Docs

addRowAfter

adds a new row to treeGrid, after some other row

void addRowAfter(string|number new_id,array text,string|number sibl_id,string img,boolean child);
new_idstring|numbernew row id
textarrayan array of cell labels in a row
sibl_idstring|numberid of row, related to which new one will be added
imgstringimg url for new row
childbooleanchild flag (optional)

Example

myTreeGrid.addRowAfter("new_id",["col1_value","col2_value","col3_value"],"row_id",
"folder.img",true);

Back to top