Grid buttons clicked make page scroll to the top in google chrome

6 posts, 0 answers
  1. IMF
    IMF avatar
    15 posts
    Member since:
    Jun 2012

    Posted 15 Mar Link to this post

    Hello,

    If I have a grid which fills more than the heigth of the screen, (if the grid doesn´t fill the whole height it works fine) for some reason when I click on the grids buttons it makes an annoying scroll to the top. It only happens in google chrome.

    I attach a picture

     

    Thank you

  2. Stefan
    Admin
    Stefan avatar
    1040 posts

    Posted 17 Mar Link to this post

    Hello,

    I was not able to reproduce the same issue on my end.

    I made a Grid which is higher than the page and it does not scroll to the top of the page when a button is clicked:

    http://dojo.telerik.com/OCemU

    I can assume that based on a custom logic, the Grid may be re-rendered on a button click and the scroll position is reset.

    Please check the following article demonstrating how to resolve this:

    http://docs.telerik.com/kendo-ui/controls/data-management/grid/appearance#restore-scroll-positions

    If my assumption is not correct please send a fully runnable example reproducing the issue and I will gladly assist.

    Regards,
    Stefan
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. IMF
    IMF avatar
    15 posts
    Member since:
    Jun 2012

    Posted 24 Mar Link to this post

    Hello,

    Thank´s for your answer. It could be this the issue but the example that you are showing me is running in javascript, my issue is with asp .net mvc controls, I don´t know how to apply your solution.

     

    Thank you

  4. Stefan
    Admin
    Stefan avatar
    1040 posts

    Posted 28 Mar Link to this post

    Hello,

    The Same approach can be used in the MVC Grid, the only difference is how to assign the custom functions on the dataBound and the dataBinding events:

    http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#methods-DataBound(System.String)

    http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#methods-DataBinding(System.String)

    The custom functions and variables still have to be done on the client using JavaScript.

    Regards,
    Stefan
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  5. IMF
    IMF avatar
    15 posts
    Member since:
    Jun 2012

    Posted 02 Jun in reply to Stefan Link to this post

    Stefan said:Hello,

    The Same approach can be used in the MVC Grid, the only difference is how to assign the custom functions on the dataBound and the dataBinding events:

    http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#methods-DataBound(System.String)

    http://docs.telerik.com/aspnet-mvc/api/Kendo.Mvc.UI.Fluent/GridEventBuilder#methods-DataBinding(System.String)

    The custom functions and variables still have to be done on the client using JavaScript.

    Regards,
    Stefan
    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.

    Hello,

    I have tried your solution but didn´t help. I have been realing forum topics and I found an issue very similar to mine:

    http://www.telerik.com/forums/grid-selection---screen-jumps-scrolls

     

    It looks like a kendo bug, I don´t know if it´s solved yet.

     

    Thank you!

  6. Stefan
    Admin
    Stefan avatar
    1040 posts

    Posted 06 Jun Link to this post

    Hello,

    If this is indeed that same behaviour as discussed in the linked forum, it is currently not changed. The change as described by my colleague can result in breaking change and we would like the community opinion on this topic which can be shared in our feedback portal:

    http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback

    Apologies for the inconvenience this may cause you.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top