Can a Grid be defaulted to show all the columns 'auto-fit' based on their content?

1 Answer 62 Views
Grid
Adrian
Top achievements
Rank 1
Iron
Veteran
Iron
Adrian asked on 10 Jun 2021, 03:25 PM

The Telerik Blazor Grid documentation on column widths mentions that:

To allow the users to auto-fit the column widths to the content, enable column resizing - a double click on the border between the headers will have the grid adjust the column width according to the size of the data, headers and footers content.

Is it possible to generate the grid so that all the columns are set to auto-fit the data by default, rather than it being something that the user has to trigger themselves?

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 14 Jun 2021, 03:50 PM

Hello Adrian,

Indeed, your question makes sense from end-user perspective, but I am afraid the Grid does not support such a behavior. There is an open feature request with a discussion inside that mentions some of the relevant caveats:

https://feedback.telerik.com/blazor/1513385-autofit-column-widths-on-data-load

Regards,
Dimo
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Adrian
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Dimo
Telerik team
Share this question
or