ParameterAttribute or CascadingParameterAttribute in the new version ?
Hello.
I am testing out an old code which was previously tested on one of the betas with the current release , but I got the following error, which pretty much is not much informative what to do next :
WASM: System.InvalidOperationException: Object of type 'Syncfusion.EJ2.Blazor.Navigations.EjsTreeView`1[[StTest.Core.DataModels.Proxies.BusTreeProxyDataModel, StTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' has a property matching the name 'ModelType', but it does not have [ParameterAttribute] or [CascadingParameterAttribute] applied.
h.printErr @ blazor.webassembly.js:1
SIGN IN To post a reply.
3 Replies
SA
Shameer Ali Baig Sulaiman Ali Baig
Syncfusion Team
March 6, 2020 10:05 AM UTC
Hi Yordan,
Thanks for contacting Syncfusion support.
We have checked your reported issue with TreeView in Blazor platform. Unfortunately, we are unable to assume the cause of the reported issue with your provided information. Please, provide us more details about this issue like any of the following.
· Code which you have used to render TreeView.
· Syncfusion.EJ2.Blazor NuGet package version installed in your application.
· .NET Core SDK version installed in your machine.
· If possible, share us an issue replicated sample.
This information would help us to find the exact problem and to provide you the prompt solution.
However, we suggest you update to our latest EJ2 version (v17.4.54) for Blazor platform to resolve this issue.
Please, refer the following links to know more configuring EJ2 TreeView in blazor application.
Getting-Started with EJ2 in Blazor:
Getting Started with EJ2 TreeView in Blazor:
API Reference:
We have attached a Blazor server application for your convenience, please download the sample from the following link.
Please, let us know if you need any further assistance.
Regards,
Shameer Ali Baig S.
YO
Yordan
March 6, 2020 11:55 AM UTC
Hello dear support. I am attaching a demo app which shows the problem.
Attachment: BlazorApp12_36940f64.rar
Attachment: BlazorApp12_36940f64.rar
SP
Sowmiya Padmanaban
Syncfusion Team
March 9, 2020 10:33 AM UTC
Hi Yordan,
We have checked your attached sample. We would like to let you know that, the
ModelType is deprecated and no longer needed for generic type component templates after the release version (v17.4.39). Refer the release notes in below. We have modified the attached sample based on your requirement. Refer the below sample link.
To know more about the TreeView template support. Refer the below links.
UG Documentation –https://ej2.syncfusion.com/blazor/documentation/treeview/template/
Please let us know, if you need any further assistance.
Regards,
Sowmiya.P
SIGN IN To post a reply.
- 3 Replies
- 3 Participants
-
YO Yordan
- Mar 5, 2020 02:01 PM UTC
- Mar 9, 2020 10:33 AM UTC