ODataV4 binding with embedded object

Hi,
 
I'm having trouble getting TreeGrid to work with my project requirements.

I'm running WebAssembly 5.0.2 and Syncfusion 18.4.0.35.

This is the code I'm having issues with:

@using Syncfusion.Blazor
@using Syncfusion.Blazor.Data
@using Syncfusion.Blazor.TreeGrid

<SfTreeGrid TValue="E"
IdMapping="@nameof(E.Id)"
ParentIdMapping="@nameof(E.ParentId)"
HasChildMapping="@nameof(E.HasChildren)"
TreeColumnIndex="1"
AllowPaging="true">
<SfDataManager Url="https://app.psam.io/api/reference-data-groups"
Adaptor="Adaptors.ODataV4Adaptor" />
<TreeGridColumns>
<TreeGridColumn Field="@nameof(E.Id)" IsPrimaryKey="true" />
<TreeGridColumn Field="@nameof(E.Abbreviation)" />
<TreeGridColumn Field="@nameof(E.CountDirectChildren)" />
TreeGridColumns>
SfTreeGrid>

@code {

public class E
{
public DateTime DateTimeCreated { get; set; }
public DateTime DateTimeLastModified { get; set; }
public Guid Id { get; set; }
public Guid? ParentId { get; set; }
public bool HasChildren { get; set; }
public int CountDirectChildren { get; set; }
public string Abbreviation { get; set; }
public Tp TranslatedProperties { get; set; }
}

public class Tp
{
public string Name { get; set; }
public string Information { get; set; }
}

}
And this is the error that I'm getting in the console, with no data but a spinning animation being shown in the UI.

Please note that commenting out this line :

// public Tp TranslatedProperties { get; set; }

solves the TreeGrid issue, but does not satisfy my requirements. Also, such embedded objects work just fine with other Syncfusion controls such as SfrDropDownList.

I've opened up the corresponding endpoint so that you can verify whether you are getting the same error.

Please let me know when embedded objects will be supported in such scenarios.

Best regards
Eugene


7 Replies 1 reply marked as answer

PK Padmavathy Kamalanathan Syncfusion Team January 26, 2021 12:46 PM UTC

Hi Eugene, 
 
Thanks for contacting Syncfusion Forums. 
 
Query: script error occurs with no data but a spinning animation being shown in the UI 
 
We are able to reproduce the reported issue at our end. We are validating this problem with high priority and update you further details on or before 28th  January 2021.  
 
In the mean time, kindly share us the below details which would be helpful for our validation,  
  1. Please share us complete Tree Grid rendering code or feature list that has been used.
  2. Kindly confirm us whether you are using ASP.NET Core Hosted Blazor Web Assembly App
 
Regards, 
Padmavathy Kamalanathan 



EK Eugene Kudryavtsev January 26, 2021 01:54 PM UTC

Hi Padmavathy,


Thank you for your quick reply.


1. The code I sent to you is the whole code except for a @page directive at the top.

2. I did start with the Hosted Blazor Web Assembly App template


Regards

Eugene Kudryavtsev



PS Pon Selva Jeganathan Syncfusion Team January 28, 2021 04:49 AM UTC

Hi Eugene,   
 
Thanks for the update.   
 
We have validated the reported issue, but we do not have support for complex binding feature. We already logged feature task for providing “Support for Complex Bindings  with ExpandoObject for the SfTreeGrid control”. Support for this feature will be rolled out to  Volume 4 SP1 release which is expected to be rolled out at the end of January 2020. 
 
   
Please get back to us if you need any further assistance.   
   
Regards,  
Pon selva   



PS Pon Selva Jeganathan Syncfusion Team January 28, 2021 12:25 PM UTC

Hi Eugene, 

Sorry for the inconvenience caused. 

Due to some complexities, We are unable to provide support for complex binding feature in Volume 4 SP1 as promised. Support for this complex binding feature will be included in our “Volume 1 2021” Main release which is expected to be rolled out in March 2021
 
You can track the current status of your request, review the proposed resolution timeline and contact us for any further queries through this link,  
  
  
Note: To view the above feedback, kindly login into your account.  
 
Until then we value your patience. 

Regards, 
Pon selva 




EK Eugene Kudryavtsev January 28, 2021 08:16 PM UTC

Dear Syncfusion Support,

Thank you for your replies.

It's unfortunate that this feature doesn't work as in SfGrid or SfDropDownList and that it won't be implemented until march.

In the meantime, I will flatten my model for this specific use case.

Best regards
Eugene


PS Pon Selva Jeganathan Syncfusion Team January 29, 2021 01:06 PM UTC

Hi Eugene, 

Sorry for the inconvenience caused. 

We will implement this complex binding feature in our “Volume 1 2021” Main release which is expected to be rolled out in March 2021. You can use this feature once we have rolled out. 
 
Until then we value your patience. 

Regards, 
Pon selva 



PS Pon Selva Jeganathan Syncfusion Team August 23, 2021 01:39 PM UTC

Hi Eugene,    
 
We appreciate your patience. 
 
We are glad to announce that we have provided support for “Complex Binding to ExpandoObject Support in Tree Grid” in our Volume 1 2021 Main release ("v19.1.54"). We request you to update to our latest version. 
Kindly get back to us for further assistance. 

Regards, 
Pon selva 


Marked as answer
Loader.
Up arrow icon