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
5 Answers, 1 is accepted
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
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
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
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
[/quote]
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!
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