We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Dynamically creating grid columns causing width issues

I'm trying to dynamically create GridColumns using a foreach loop, but I'm running into issues with the width.

1) If the first time, the for loop renders 4 GridColumns with width 120px on a 1000px wide page, this is fine.

2) Second time, the for loop renders 15 GridColumns with width 120px on the same 1000px wide page. No horizontal scrolling bar. All the grid columns are shortened to some calculated value. and the header text is cut off with ellipsis.

I'd like the grid to create the horizontal scrollbar if there are more gridcolumns than the viewable area can support. 

1 Reply

SP Sarveswaran Palani Syncfusion Team December 23, 2022 03:49 AM UTC

Hi Peter,

Greetings from Syncfusion support.

From your query, we prepared sample based on your shared code snippet, but we’re unable to reproduce the reported issue at our end. Kindly share the video demo of an issue and reproduce the reported issue in the provided sample or share simple issue reproducible sample to us. It’ll will be very helpful for us to validate the reported query at our end and provide the solution as early as possible. Kindly refer the attached sample and video demo for your reference.



Attachment: SfGridBlazor_c9657c2b.zip

Live Chat Icon For mobile
Up arrow icon