DataGrid not showing data NET 5.0 (In some cases)

Dear Syncfusion support,

I am facing weird issue when trying to show data in DataGrid. I have controller action with two options. Filtered and not filtered. If data is returned not filtered DataGrid is rendered properly. If filtered not rendered at all.




So if first part is triggered all is fine


If second part is triggered (example: https://localhost:44340/Secstock/Secstock/42) there is no DataGrid rendered but data are returned as you can see in html table.



If I go to the browser developer tools only what is there is


Same thing happens with other controller/view where I have filtered action only. There is no error messages at all.

Interesting thing is I have same application with different database behind and all is working fine.

Do you have any idea what could cause this behavior?


Update...If returned data is empty(No data to display) DataGrid is rendered.



Thanks

BR

Jurica



3 Replies

RS Rajapandiyan Settu Syncfusion Team September 2, 2021 11:38 AM UTC

Hi Buzz 
  
Thanks for contacting Syncfusion support. 
 
We are unable to reproduce the reported problem at our end. Also, you said that the issue is reproduced in particular project only and same code working fine in another project. Kindly share the below details, it will be very helpful to resolve this problem. 

  1. Share the issue reproducible sample.
  2. Please ensure that is the style script file referred properly in your project or not.
  3. How could you load the dataSource to Grid, share the code example?
  4. Share the console error if you faced any.
  
Regards,  
Rajapandiyan S 


BU Buzz September 2, 2021 06:53 PM UTC

Hi,


Figured out. There was a problem with data model. Have no idea why it caused a problem with DataGrid rendering.

Foreign key was a problem. 


Thanks anyway.

Buzz



RR Rajapandi Ravi Syncfusion Team September 3, 2021 02:15 PM UTC

Hi Buzz, 

Thanks for the update 

We have requested you to share the details in our previous update. To provide better solution on your query, we need some more information for our clarification because your reported problem was not reproduced from our end. So, please share the below details that will be helpful for us to provide better solution. 

1)         Please share your complete Grid rendering code(client and server side). 

2)         Please share the issue scenario in video demonstration format. 

3)         Please confirm you are using Grid default filter or any other external filter. 

4)         Please share the screenshot of network tab response for your filtered and not filtered scenario. 

5)         Please share the code part of foreign key column and also share the foreign key data model structure. 

6)         If possible, please share the issue reproducible sample that will be helpful for us to validate the problem. 

Rajapandi R 



Loader.
Up arrow icon