Delete and then add a child node from/to same parent node gi

We are using dhtmlxgrid object to display a tree structure. After initial display, we are doing operations like add/delete child nodes using addRow() and deleteRow() methods available in the API. Everything works fine except for one scenario.



The scenario is: When I delete a child node and then add a new child node from/to same parent node gives javascript error. After that I can’t even expand/collapse the parent node.



I am using below methods to do delete & add:



grid.deleteSelectedItem();



grid.addRow(newChildRowId, rowData, null, parentRowId, ‘people.gif’, false);





This issue is bugging since long. I would appreciate if you can give me a way to solve this.



Thank You,

Satya

Problem in dhtmlxTreeGrid 1.3 confirmed and fixed, fix will be available as part of next version,
if you need it ASAP - please contact us at dhtmlx@scand.com, and provide your customer number.

I’m using dhtmlxTreeGrid v.2.6 build 100722 and I have the same problem but I don’t get a javascript error… it just won’t add the item.

Scenario… My tree grid has a folder (let’s call it “MyUser”). This folder has an item with an id of “MyUser/1234” underneath it. First I delete that item by selecting it and calling the command:
subGrid.deleteSelectedItem();
Then I try to add it back in by calling:
subGrid.addRow(“MyUser/1234”, [“User name”,"","","", “”], null, “MyUser”, “user_icon.png”);

I can add other users just fine, just not a user that I’ve already deleted. Using FireBug it doesn’t look like dataProcessor is even making the call. If I were to refresh the screen I would then be able to add this user to this folder without a hitch. If I again delete this user I won’t be able to add this user again until I refresh the page.

Unfortunately we cannot reproduce this issue locally. Please open ticket at support.dhtmlx.com/ and provide us demo link or example where we can reproduce it.