strange behavious on addrow treegrid

Hi i am getting a strange behaviour on a treegrid



i have a treegrid with 1 column which is a tree column



when i try to add rows to items that are not the top node in the tree then all is fine



however when i try to add an item to the topnode of a tree then it displays the error:



this.rowsCol[ind] has no properties

addRow(“23”, [“1^ss^0^folderOpen.gif”], 10, “1”, “folderOpen.gif”, undefined)



the row that is causing the error is:



manageQueriesGrid.addRow(folderID,folderName,null,parentID,‘folderOpen.gif’);



this is the same line that works for sub items but not the top most node



do you have any idea why this would occur



thanks

Which version of dhtmlxgrid you are using?
The problem can’t be reconstructed for dhtmlxgrid 1.6, but in case of dhtmlxgrid 1.5 - there was similar bug in earlier build.
In case of  grid 1.5 - please contact us directly at support@dhtmlx.com and provide your ref. number - we will send you an updated js file.

hi, yes it is 1.5

thanks very much

Fixed js file was sent by email.

Hi

thanks for this, although i recieved the 1.5 dhtmlxTreeGrid file, is this correct or should i have received the dhtmlxGrid 1.6 file as this has not fixed the problem

thanks again

The file which was sent by email - updated version of dhtmlxTreeGrid.js for dhtmlxTreeGrid 1.5 ( the problem was located in this file )
With updated js file problem is not reconstructable anymore (sample which uses the same code as in your case has been sent by email )

If problem still occurs - please provide any kind of sample where it can be reconstructed.

hi

unfortunately the file you sent me did not fix the error. however i managed to fix the bug myself by running a closeItem() method on the folder i am adding to and then running openItem() method after adding the new row. this has stopped the error message from appearing

do you have any idea what this error is?

thanks

Is the problem reconstructable in sample which was sent by email , or only in your custom code ?
While testing with local samples, the same code for version 1.5, which was sent to you, works correctly.

If problem still occurs for you - please provide any kind of sample ( you can send it directly to support@dhtmlx.com )