Hi,
I have found a problem with the addRow function since updating my v1.6 pro suite with an update dhtmlxtreegrid.js that you provided me with to enable serialization of a grid that contained cells with colspans specified.
I am trying to add a row to an XTreeGrid using addRow(id, values, index) and have found that if the TreeGrid contains other rows that are open then I get the following error:
childs[…].id is null or not an object
However, if I manually any close all open rows and then call addRow it works fine.
I have put back the previous version of dhtmxltreegrid.js and the problem goes away - I can add rows if the grid contains other open rows.
Note: addRow(id, values, index, parent) seems to work ok with the updated code - so I can add “child” rows no problem, but i need to be able to add rows directly to the start or end of the grid.
Please advise!
Thankyou,
Carl.
Please contact us directly at support@dhtmlx.com and provide your ref. number, we will send you an updated version of TreeGrid code, which will resolve issue.