VirtualGrid HeaderSizeNeeded no longer called after changing ColumnWidth to flush cache?

0 Answers 11 Views
VirtualGrid
Jason
Top achievements
Rank 1
Jason asked on 05 Mar 2025, 04:25 PM

Hi,

We recently upgraded from 2022.3.912 to 2025.1.211 and it appears that VirtualGrid HeaderSizeNeeded is no longer called after we change VirtualGrid ColumnWidth to flush the cache of column widths. Is this a bug or is there some other way we should be forcing a recalculation of the column widths? Thanks in advance.

__Jason

Jason
Top achievements
Rank 1
commented on 06 Mar 2025, 01:25 PM

I've subsequently found (from reading the Telerik source code) that setting and resetting the InitialColumnCount property seems to achieve the same thing (forcing recalculation of column widths via the HeaderSizeNeeded event) as the setting and resetting we were previously doing to ColumnWidth. Is this okay to do?
Martin Ivanov
Telerik team
commented on 10 Mar 2025, 02:15 PM

The HeaderSizeNeeded event no longer raises on ColumnWidth changed because this behavior was unintentional and it was causing a bug in specific situations.

Resetting the InitialColumnCount should do the trick in your case. You can also try the Reset() method of RadVirtualGrid.

No answers yet. Maybe you can help?

Tags
VirtualGrid
Asked by
Jason
Top achievements
Rank 1
Share this question
or