Grid columns auto stretch to width

Hello,

I have a strange problem with Grid control from latest updates.

There is a Grid with 100% width, twenty columns generated in the OnInitialized method of the blazor component all with a set width (e.g. 120, 150, ..).
The problem is that sometimes the Grid appears with all the columns stretched to stay inside the page width, instead of mantain the setted width and show the horizontal scrollbar.
I tried also setting AutoFit property to true but I got the same result.

Sincerely I can't figure out why sometimes works and sometimes doesn't work.

Thank you

3 Replies

VN Vignesh Natarajan Syncfusion Team February 25, 2020 12:36 PM UTC

Hi Fabrizio,  
 
Greetings from Syncfusion support.  
 
Query: “Sincerely I can't figure out why sometimes works and sometimes doesn't work. 
 
From your query we understand that you are facing issue in Grid width sometimes. So we need some more details from you regarding the reported issue. So kindly share the following details. 
 
  1. Share the screenshot of both the Grids.
  2. Share the Grid code example.
  3. Ensure the reported issue by clearing the browser cache and also the ensure the you have referred Same version of script and css files corresponds to Nuget package version.
  4. Are you facing any exception in Grid when you face issue?. If yes, share the screenshot of the reported issue.
  5. Is there any time delay in loading the dataSource to Grid?. Share the details about your DataSource.
 
Requested details will be helpful for us to validate the reported issue at our end and provide details as soon as possible.    
 
Regards, 
Vignesh Natarajan. 



FA Fabrizio Alessandro March 6, 2020 03:46 PM UTC

Hello,

Thank you for your reply,
It seems that the Grid is ok, it was a problem of a Tab control in the same page that occurred in an error (reported here https://www.syncfusion.com/forums/151860/error-cannot-read-property-header-of-undefined) and than all the page sopped working.

So the Grid has no problems.

Thank you


VM Vengatesh Maniraj Syncfusion Team March 9, 2020 05:55 AM UTC

Hi Fabrizio Alessandro, 

Thanks for the update. 

Kindly update your Tab related queries in the ticket 151860 and follow the same for further follow-up. 

Regards, 
Vengatesh 


Loader.
Up arrow icon