jquery - EasyUI Treegrid - insert method does not update children collection -
i using jquery easyui treegrid on project. i have tree loaded initial data. afterwards, need insert new rows on tree when user clicks "add" button. add click handler has code , working expected: var row = $treegrid.treegrid('getselected'); if (row) { var obj = { id: "x" + ++maxid, code: "x" + maxid, amount: 2 }; $treegrid.treegrid('insert', { after: row.id, data: obj }); $("#txtresult").text("added new row: " + obj.id); } however afterwards when check children of row (where new child added), not include newly added row. i have setup jsfiddle demonstrate issue. reproduce it: select row @ 2nd level , click add child. new row added per code above. "row added" message displayed below buttons. select parent , click "show children" button. children count of selected row shown below buttons. after inserting row, ha...