Categories | Question details Back To List | ||
DhtmlTree Grid
How can i add new row into a Tree Grid while loading the JSP page, not using loadXML method.
Can i add row to a Tree Grid using addRow() method when loading a JSP page Answer posted on Jun 25, 2007 10:44 Of course row can be added by addRow command In case of treeGrid it has two additional params grid.addRow(id,[data],index,parent_id,image); parent_id - id of parent element ( 0 for top level ) , mandatory image - path to image used for row, optional the index can be set to null To simplify row adding two more methods exists grid.addRowAfter(... grid.addRowBefore(... Please beware that adding row by command is slower that adding rows by loadXML or loadXMLString in case of mass row adding. Answer posted by Embre (Support) on Dec 08, 2014 03:48 To find more precise comments upon this issue, we can offer you read about autocomplete ajax and web template. |