Im able to insert an element successfully into a grid provid

This the XML file which i’m using to develop the initial grid (ie empty grid where the second column is of tree type. If i change that to “ed” type then the insert row at the beginning function is working fine.

<?xml version="1.0" encoding="UTF-8"?>

   
        userdata value 1
   
   
        userdata value 2
   
    
        
        
        
       
       
       
        
        
        
        
        
        
        
        
           
                one
                two
                three
                four
                five
                six
                seven
                eight
                nine
                ten
           
       
        
        
   
   
        
       
            userdata value for honda
       
       
   

   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   
   
        
       
            userdata value for honda
       
       
   



Kindly let me know whether anything is wrong with this file .

The problem is not reconstuctable from my side, but I was able to reconstruct similar error in case of incorrect addRow command

In case of treeGrid the add row accepts next parameters

addRow(new_id,text,ind,parent_id)

if you are adding row to top level you still MUST specify parent_id , for top level it will be 0
For example
    mygrid.addRow(new_id,[“v1”,“v2”,“v3”],null,0);