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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Fix column width

Thread ID:





149533 Nov 29,2019 01:59 AM UTC Nov 29,2019 07:12 AM UTC Vue 1
Tags: Data Grid
Marcelo Ribeiro
Asked On November 29, 2019 01:59 AM UTC


In the example below, we can see the "checkbox" column cut out.

The display on the notebook gets worse..

Is it possible to fix the width of a column at any resolution?

How can I ensure that the checkbox is always visible?

Thank you!

Attachment: gridcolumn_b7a549f2.zip

Thavasianand Sankaranarayanan [Syncfusion]
Replied On November 29, 2019 07:12 AM UTC

Hi Marcelo, 

Greeting from Syncfusion support. 

Query: Is it possible to fix the width of a column at any resolution? 
By default, when we apply width for all columns then it automatically adjust based on the grid width(browser size). If you want to apply static width for column then we suggest you to use the below way. 

In the below sample, we have not applied width for Freight column so all other columns are having static width and Freight column will be adjust based on the screen resolution. 

<ejs-grid ref="grid" id="grid" :created="created" :dataSource="data" :allowPaging="true" gridLines="Vertical"> 
    <e-column type="checkbox" width="60"></e-column> 
    <e-column field="OrderID" headerText="Order ID" width="90" textAlign="Right"></e-column> 
     <e-column field="Freight" headerText="Freight" format="C2" textAlign="Right"></e-column> 
    <e-column field="OrderDate" headerText="Order Date" width="130" textAlign="Right" type="date" format="yMd"> 
    <e-column field="ShipCountry" headerText="Ship Country" width="150"></e-column> 

Thavasianand S. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon