Odata Guid Filter Exception using WebApiAdaptor in a TreeView

Dear Sir or Madam,

I'm trying to use a WebApiAdaptor to query Children in a TreeView.
I have no Problem querying the Parent Items of the TreeView, but when I try to expand an item of the TreeView I get an Exception.

If I try to perform the http request done by the WebApiAdaptor I get the following Exception
https://localhost:44318/API/Rundown/FileSystems?$filter=ParentId%20eq%20%2780721261-2c15-4849-8d03-7ea4493a76ea%27&$select=Name,Id,ParentId,IsExpanded,HasChildren

When I remove the ' = %27 around the Guid I get the excepted result.
https://localhost:44318/API/Rundown/FileSystems?$filter=ParentId%20eq%2080721261-2c15-4849-8d03-7ea4493a76ea&$select=Name,Id,ParentId,IsExpanded,HasChildren

Is there a way I can change the Guid to String parsing for the Query Parameters?


Page


Controller

Parent Result:




Thank You
Gereon Arz


1 Reply

IL Indhumathy Loganathan Syncfusion Team October 18, 2021 11:59 AM UTC

Hi Gereon, 
 
Greetings from Syncfusion support. 
 
We have validated your reported query in Blazor TreeView component by preparing a WebApi adaptor sample with GUID id values for TreeView nodes. But we are unable to replicate the reported issue at our end. We have mapped the GUID for both Id and parentId values and it is working fine. We can expand the TreeView nodes and able to see the corresponding child nodes in our sample. 
 
For your reference, we have shared the sample and service provider in below links. 
 
 
 
We suspect that the query string for child nodes retrieval is not proper at your end. We suggest you to refer the below blogs and check whether the provided suggestions helps you. 
 
 
 
 
If the issue persists, share your data source and query string related code snippets. If possible, replicate the issue in the above sample. These details would help us to assist you promptly.  
 
Please let us know if you need any further assistance. 
 
Regards, 
Indhumathy L

Loader.
Up arrow icon