Hi,
I have added new rows to the dhtmlxgrid using addRow method.
var count = Grid.getRowsNum();
var newRowId = "N" + (count + 1);
Grid.addRow(newRowId, [newRowId, "A","B", "C"]);
So, the newly added rows will have Id as “N1, N2…”.
Each row in the grid will have a delete button(Image button ) . When I click on Delete button I am getting error.
I think the newly added row does not set the Id which I created dynamically.
Please help to resolve this issue.
Unfortunately the problem cannot be reconstructed locally.
Your code works well for me locally.
Thank you for replying Sematik.
old code:
var count = Grid.getRowsNum();
var newRowId = "N" + (count + 1);
Grid.addRow(newRowId, [newRowId, "A","B", "C"]);
The issue is solved after replacing the code as.
var count = Grid.getRowsNum();
var newRowId = "N" + (count + 1);
Grid.addRow(Grid.uid(), [newRowId, "A","B", "C"]);
I replaced the newRowId to Grid.uid() and it worked.
Regards,
Durga V.