Frozen Columns - Resize Method Issue

4 posts, 0 answers
  1. AGB
    AGB avatar
    71 posts
    Member since:
    Sep 2014

    Posted 10 Aug 2018 Link to this post

    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
  2. Preslav
    Admin
    Preslav avatar
    589 posts

    Posted 14 Aug 2018 Link to this post

    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.
  3. AGB
    AGB avatar
    71 posts
    Member since:
    Sep 2014

    Posted 14 Aug 2018 in reply to Preslav Link to this post

    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

  4. Preslav
    Admin
    Preslav avatar
    589 posts

    Posted 15 Aug 2018 Link to this post

    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.
Back to Top