Failure to bind with OData API

Hello,


I am evaluating the EJ2 components and I have a problem getting the grid to work, with an OData API endpoint.


I have created two different APIs with OData endpoints for testing, one in PHP and one in C#, yet the Grid component fails to register any data and diplays "No records to display"


I have forked a tutorial from github, SyncfusionExamples/vue3-grid-getting-started, which works perfectly out of the box. When I change the URL with any one of the local APIs I have developed I only get a " No records to display" label, and no rows.


Both APIs work, i.e. they return OData responses when tested independently, so I can't figure out what is preventing the Grid component from showing the data.


Can you please suggest an approach?


2 Replies

KO Konstantinos April 27, 2022 11:03 AM UTC

After some search, I have discovered the problem.


The Grid component sends a request to the API that includes a header specifying OData V4.01 protocol, but the V4.01 response that is returned can not be handled / is ignored by the Grid.


If I set my APIs to ignore the header that requests V4.01 and respond with a V4.0 response, it seems to work.



Is this a misconfiguration on my part, or a bug in the ODataV4Adapter?







RR Rajapandi Ravi Syncfusion Team April 27, 2022 01:25 PM UTC

Hi Konstantinos,


Greetings from Syncfusion support


We have checked your shared information and since your provided information was not enough to identify your reported problem at our end. So, before we start providing solution to your query, we need more information for our clarification. Please share the below details that will be helpful for us to provide better solution.


1)            Please share your issue scenario in video demonstration format.


2)           Please share the issue replication procedure step by step.


3)           Please share the screenshot of network tab response.


4)           Please share your Syncfusion package version.


5)           Share your complete Grid rendering code.


6)           If possible, share any issue reproducible sample or please try to reproduce the problem in our shared sample that would be helpful for us to validate your problem at our end.


Regards,

Rajapandi R


Loader.
Up arrow icon