Unplanned
Last Updated: 20 Jan 2023 14:01 by ADMIN
Zach
Created on: 19 Jan 2023 21:09
Category: Grid
Type: Feature Request
4
Allow columns to be pre-flagged for autofit so that calculations need only run once

Currently, the autoFitColumn() method shouldn't be used to resize all columns in a large grid, as noted here: https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/autofitcolumn

Could this performance be improved by deferring the width calculation?  So a 10 column grid could be completely autoFit with 1 calculation instead of 10.

Could an .AutoFit(true) method be added to the GridColumnBuilder's Fluent Api?  

This would allow me to build columns such as:

.Columns(column => column.Bound(model => model.Value).AutoFit())

This should defer the autofit calculations so that they can be run once for all auto-fitted columns, rather than re-calculating for every column.

In other words, this should NOT simply call autoFitColumn() as it is currently implemented.

1 comment
ADMIN
Anton Mironov
Posted on: 20 Jan 2023 14:01

Hi Zach,

Thank you for the details provided. I can clearly see your point.

Yes, you are totally correct - the AutoFit method for the column builder is a very good idea.

I have created a Feature Request in our Feedback Portal regarding the addition of the AutoFit functionality. 
You can see it here: 

I have given a Vote on your behalf and you can Follow it for email notifications on status updates.

Furthermore, I am now increasing your Telerik points accordingly.

 

Kind Regards,
Anton Mironov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.