Problem with TreeGrid

Good Morning,


I Have a recordset that works fine in the SFGrid but does not in SFTreeGrid as shown, I have studied the other posts of treeGrid but culd not have it solved unfortunately



Can U Help Me ?

Tks


5 Replies 1 reply marked as answer

FS Farveen Sulthana Thameeztheen Basha Syncfusion Team December 15, 2021 02:36 PM UTC

Hi Renato, 

Thanks for contacting Syncfusion Support. 

We are able to replicate the problem from your provided code example. In your provide code, you have bound ParentId with value “0” which leads to the reported problem. If you want to bind any record as parent, its value should be null to form parent-child hierarchy. 
 

Refer to the code below:- 
protected override void OnInitialized() 
    { 
        TreeData.Add(new BusinessObject() { LinhaId = 1, DataVenda = "Parent Task 1", ValorVenda = 10, ParentId = null  }); 
        TreeData.Add(new BusinessObject() { LinhaId = 2, DataVenda = "Child task 1", ValorVenda = 4, ParentId = 1}); 
        TreeData.Add(new BusinessObject() { LinhaId = 3, DataVenda = "Child Task 2", ValorVenda = 5, ParentId = 2}); 
      
       .   .   . 
} 

Screenshot:- 
 

 
Refer to the documentation Link and we have used the same in all of our documentations:- 

Please get back to us if you need any further assistance. 

Regards, 
Farveen sulthana T 


Marked as answer

RE Renato December 16, 2021 03:31 PM UTC

Farveen,

Tks for the reply, 

I have already tried

to use the null Value and every time it returns this error



 

Can U help ?



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team December 18, 2021 07:30 AM UTC

Hi Renato, 

Query#:- to use the null Value and every time it returns this error  

As we have mentioned in previous update, we are unable to replicate the problem at our end. So share us the following details. 

  1. NuGet package version details.
  2. If possible replicate it in the above sample and revert us back.
  3. Video demo to replicate the issue.

Regards, 
Farveen sulthana T 



RE Renato replied to Farveen Sulthana Thameeztheen Basha December 18, 2021 10:52 PM UTC

Tks a lot Farveen, 


I used your Example and it began to work fine,


Tks from Brasil !!!



FS Farveen Sulthana Thameeztheen Basha Syncfusion Team December 20, 2021 07:58 AM UTC

Hi Renato, 

Thanks for your update. Please get back to us if you need any further assistance. We are happy to assist you. 

Regards,
Farveen sulthana T 


Loader.
Up arrow icon