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
SIGN IN To post a reply.
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.
Modified sample link:- https://www.syncfusion.com/downloads/support/forum/171194/ze/Serversample_(4)-1668379620
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.
- NuGet package version details.
- If possible replicate it in the above sample and revert us back.
- Video demo to replicate the issue.
Regards,
Farveen sulthana T
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
Farveen sulthana T
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
- Marked answer
-
RE Renato
- Dec 14, 2021 04:00 PM UTC
- Dec 20, 2021 07:58 AM UTC