This is a migrated thread and some comments may be shown as answers.
Frozen Columns - Resize Method Issue
3 Answers 14 Views
This is a migrated thread and some comments may be shown as answers.
AGB
Top achievements
Rank 1
AGB asked on 10 Aug 2018, 10:25 AM
Hi Guys,

Have just tripped over an issue whereby calling the resize method on a grid with frozen columns causes rows within the frozen section to be out of alignment with those of the main grid.

To illustrate the problem run the following dojo

    https://dojo.telerik.com/IXiDOhAC

Scroll 'Order ID 10260' into view and then hit the Resize link and you should now see all the rows out of alignment.

Is this a known issue and if so are there any methods/workarounds to realign the rows after the resize?

Regards
Alan

3 Answers, 1 is accepted

Sort by
0
Preslav
Telerik team
answered on 14 Aug 2018, 09:12 AM
Hi Alan,

I was able to replicate the problem, however, for the time being, I am not sure what is causing it.

As a workaround, manually trigger the scroll event over the unlocked content. By doing this, the Grid will align the two tables. For example:

function resize(e) {
  e.preventDefault();
  var gridWidget = $("#grid").data("kendoGrid");
  gridWidget.resize(true);
  gridWidget.content.trigger("scroll");
}

Having said that, I will continue my investigation, and I will update this forum as soon as I find anything new about the problem.


Regards,
Preslav
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
AGB
Top achievements
Rank 1
answered on 14 Aug 2018, 10:50 AM
Hi Preslav,

Thanks for looking into the issue and the workaround, which I can confirm works both in the dojo example and my application.

Will keep a look out for any further developments.

Regards
Alan

0
Preslav
Telerik team
answered on 15 Aug 2018, 01:49 PM
Hi Alan,

It appeared that this behavior is a bug, and I logged it here:
As a small token of gratitude for pointing us to the above bug, I updated your Telerik points.


Regards,
Preslav
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
AGB
Top achievements
Rank 1
Answers by
Preslav
Telerik team
AGB
Top achievements
Rank 1
Share this question
or