No data from Odata

Hi

I hope this is again something quite simple that I just do not get to work
cause this is my first attempt with TreeGrid

What I am quite sure cause this allready works just fine with DataGrid
with all grouping filtering sorting batch edit and so on....

I suppose my
Odata API works as it should
ClassModel which I use should be OK

I try to show same simple flat data in tree

ParentIdMapping="Pedinnumero"
IdMapping="PeditId"

And this is my error


That is not odd at all, cause this is what odata4 adaptor  sends to API ( which works just fine with DataGrid)
and this is most confusing it send's filter " ParentIdMapping" eq null
that does not return data as exepted so where this filter comes

info: System.Net.Http.HttpClient.Default.LogicalHandler[100]

      Start processing HTTP request GET http://localhost:5199/odata/Pedit?$count=true&$filter=Pedinnumero eq null

info: System.Net.Http.HttpClient.Default.ClientHandler[100]

      Sending HTTP request GET http://localhost:5199/odata/Pedit?$count=true&$filter=Pedinnumero eq null

info: System.Net.Http.HttpClient.Default.ClientHandler[101]

      Received HTTP response headers after 3214.6684ms - 200

info: System.Net.Http.HttpClient.Default.LogicalHandler[101]

      End processing HTTP request after 3243.2357ms - 200

Best regards,

Jukka


2 Replies

JT Jukka Tervonen August 28, 2022 01:55 PM UTC

Now I just think I am trying to get something this control is not ment for.
I am trying to just group data on one field and then that I could select one group at time with one click and make
modification for that data  ( this is not correct one to many relation ship)


I supposee I have to go back and solve this with DataGrid



PS Priyadarshan Selvan Syncfusion Team August 29, 2022 02:05 PM UTC

Hi Jukka Tervonen,


We were unable to reproduce the issue(No data from Odata) at our end while preparing a sample based on your query.


Please refer the below screenshot:



Please refer to the attached sample:


After following the above reference, still faced issue please share us the following details.

  1. Share complete tree grid code example.
  2. Share the product details version.
  3. Share the issue reproducible sample or reproduce the issue in our shared sample.
  4. Share the video demo of your issue.


The provided information will be helpful to provide you response as early as possible. 


Regards,

Priyadarshan Selvan


Attachment: ODataV4532192554_fc9f5c2b.zip

Loader.
Up arrow icon