TelerkGridLayout not rendering

1 Answer 41 Views
GridLayout MediaQuery
Jai
Top achievements
Rank 1
Jai asked on 24 Aug 2023, 02:28 PM

I had a problem with the TelerikGridLayout, in conjunction with a MediaQuery where on First render it was not rendering any of the objects.

After a lot of investigation I found an article that used an IEnumerable to bind to the grid and not a list. After using an IEnumerable, my objects rendered perfectly and were responsive.

 

Anyone having problems with the TelerikGridLayout, make sure to use an IEnumerable and not a List to bind to the grid.

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 29 Aug 2023, 09:41 AM

Hello Jai,

Can you send us a runnable reproducible of the issue you are facing? I am asking because the TelerikGridLayout is not a data-bound component and it must not be affected by the type of a data collection. 

If you actually meant the TelerikGrid (Data Grid) it must work with List as well as IEnumerable.

I will highly appreaciate your assistance.

Regards,
Svetoslav Dimitrov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Telerik family, check out our getting started resources!
Jai
Top achievements
Rank 1
commented on 29 Aug 2023, 10:03 AM

Hi there

If you look at support ticket 1621013 you will see the code that I had. It was using a List. As I mentioned in this post, once I changed to an IEnumerable, it started working perfectly, that's why I created this post.

 

The problem was weird. It wouldn't render on first render, but when you resized, it would render.

Tags
GridLayout MediaQuery
Asked by
Jai
Top achievements
Rank 1
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or