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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Auto fit all columns

Thread ID:

Created:

Updated:

Platform:

Replies:

143600 Mar 28,2019 12:46 PM UTC Apr 2,2019 07:29 AM UTC Angular - EJ 2 3
loading
Tags: Grid
Neo
Asked On March 28, 2019 12:46 PM UTC

Hi All,

How to call Auto fit all columns programmatically which has the option in FilterSettings = { type: 'Excel' }. And also after the columns auto fitted I want to change some columns size manually by code. This would be call inside a subscribe.

Thank you.

Madhu Sudhanan P [Syncfusion]
Replied On March 29, 2019 05:49 AM UTC

Hi Shamil, 

Thanks for contacting Syncfusion support. 

You can use the autoFitColumns method without any parameter in the dataBound to autofill all columns. Please refer to the below help link. 


 

Also you have mentioned as “after the columns auto fitted I want to change some columns size manually”, are you expecting to increase the column width? Could you please clarify us with more information on this requirement.  

Regards, 
Madhu Sudhanan P 


Neo
Replied On April 1, 2019 07:20 AM UTC

Hi Shamil, 

Thanks for contacting Syncfusion support. 

You can use the autoFitColumns method without any parameter in the dataBound to autofill all columns. Please refer to the below help link. 


 

Also you have mentioned as “after the columns auto fitted I want to change some columns size manually”, are you expecting to increase the column width? Could you please clarify us with more information on this requirement.  

Regards, 
Madhu Sudhanan P 


Hi Madhu,

autoFitColumns working according to your guidance. In the second requirement I asked, How to set static width for some specific columns without changing when call to the autoFitColumns method.

Thank you.

Madhu Sudhanan P [Syncfusion]
Replied On April 2, 2019 07:29 AM UTC

Hi Shamil, 

Thanks for the update. 

To maintain static width while auto fitting set the width, minWidth and maxWidth property of the column to the same value. Now the autoFitColumns will not have any effect on those columns. 

Regards, 
Madhu Sudhanan P 


CONFIRMATION

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

;