Declined
Last Updated: 28 May 2021 17:35 by ADMIN
John
Created on: 25 Aug 2016 17:31
Category: UI for ASP.NET AJAX
Type: Feature Request
0
resizetofit
Hello, In one of the pages in our website, we have a RadGrid that uses client-side binding.  Above the grid, there's an "Apply Best Fit" button that executes the following JavaScript:
...
...

applyBestFit: function(tableView)
{
  var columns = tableView.get_columns();

  for (var i = 0; i < columns.length; i++)
    columns[i].resizeToFit(false, true);
}

...
...
In IE, it runs VERY slowly when there's 5,000 grid rows.

I found this post: "http://www.telerik.com/forums/radgrid-with-resizetofit-javascript-issue" and read the recommended link: "http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/performance/grid-performance-optimizations"

I understand that resizeToFit( ) is slow under IE.

I would like to propose that you add a new "MaxRowsToEvaluate" (or similar) parameter to resizeToFit( ) that can be used to control how many grid rows are evaluated when determining the widest size of a column.

With this new parameter, I could pass a value of 25, for example, and know that only up to 25 grid rows will be used in calculating the widest size of a column.  That would speed things up a lot I think.

Using this approach, the resizing would not be perfect, because a cell in the column beyond the "MaxRowsToEvaluate" number of rows may contain a value that's really long, but at least it wouldn't make the browser look like it's hung.

Thanks
1 comment
ADMIN
Rumen
Posted on: 28 May 2021 17:35

Hi John,

Thank you for the feature request!

The item did not gain any popularity since 2016 and unfortunately, we have to decline it.

If it gets any new votes or requests in the tickets/forums, we will update its status.

 

On a side note, IE is not so popular nowadays and MS plans to discontinue it completely pretty soon - https://techcommunity.microsoft.com/t5/microsoft-365-blog/microsoft-365-apps-say-farewell-to-internet-explorer-11-and/ba-p/1591666.

Regards,
Rumen
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/.