This is a migrated thread and some comments may be shown as answers.

How to scroll to top position when user click next page?

1 Answer 27 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Seeker
Top achievements
Rank 1
Seeker asked on 28 Jun 2018, 09:29 AM

````

$("#grid").kendoGrid({
                dataSource: {
                    type: "odata",
                    transport: {
                        read: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Customers"
                    },
                    pageSize: 15
                },
                height:600,
                groupable: true,
                sortable: true,
                pageable: {
                    refresh: true,
                    pageSize: 15,
                    pageSizes: [15,30,50,'all'],
                    buttonCount: 5
                },
                columns: [{
                    template: "<div class='customer-photo'" +
                    "style='background-image: url(https://demos.telerik.com/kendo-ui/content/web/Customers/#:data.CustomerID#.jpg);'></div>" +
                    "<div class='customer-name'>#: ContactName #</div>",
                    field: "ContactName",
                    title: "联系人",
                    width: 210
                }, {
                    field: "ContactTitle",
                    title: "职位"
                }, {
                    field: "CompanyName",
                    title: "公司"
                }, {
                    field: "Country",
                    title: "国家",
                    width: 150
                }]
            });

```````

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 02 Jul 2018, 05:48 AM
Hello, Seeker,

The answer to the same questions is provided here:

https://www.telerik.com/forums/how-to-scroll-to-top-position-when-user-click-next-page

I can assume that this is a duplicate thread.

Regards,
Stefan
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Grid
Asked by
Seeker
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or