I am trying to use a TreeList in my AngularJS app, based on demo "TreeList / Binding to local data".
I added a "createChild" button on each row as
columns: [
{ field: "Position", title: "Role", width: "350px" },
{ field: "Name", title: "Name", width: "250px" },
{ field: "Phone" },
{command: ["edit", "destroy", "createChild"]}
],
It is good to open an editor row under the button, but how do I reference its parent row?
I tried to add an "save" event as
save: function (e) {
alert(this.dataItem);
}
but it seems not right. Please advise!
By the way, when I "edit" and "delete" an item during the test, it successfully shows the result, but when I "update" the new row, it does not show up after the editing row closed. What do I miss?
Thanks,