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

Server Side Paging

6 Answers 1088 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dominik
Top achievements
Rank 1
Dominik asked on 25 Sep 2015, 12:43 PM
Is it possible to to use server side paging with out using the total records count? 

6 Answers, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 25 Sep 2015, 03:34 PM
Hi Dominik,

schema.total is required when using serverPaging.  For more information, see this documentation.

Regards,
Pat
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Dominik
Top achievements
Rank 1
answered on 28 Sep 2015, 03:13 PM
Does the grid support custom paging? is the paging behavior extensible? 
0
Boyan Dimitrov
Telerik team
answered on 30 Sep 2015, 08:03 AM
Hello Dominik,

Please refer to the Custom Binding article that demonstrates how to bypass the built-in data processing and to handle operations such paging, sorting, filtering and grouping by yourself.

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Dominik
Top achievements
Rank 1
answered on 30 Sep 2015, 12:45 PM

I'm using Kendo UI. Is there client side custom binding? The link was for asp.net mvc.

Thanks for your reply!

Dominik

0
Dominik
Top achievements
Rank 1
answered on 30 Sep 2015, 12:47 PM
Also, if no, can you combine the the two api's Kendo UI and Asp.net mvc?
0
Boyan Dimitrov
Telerik team
answered on 02 Oct 2015, 10:44 AM

Hello Dominik,

 

Custom client-side binding is not supported functionality, a custom operation could be implemented on the server. 

 

A possible solution for using the Kendo UI Grid (JavaScript) would be to send the Kendo.Mvc.UI.DataSourceRequest object to your controller action from the client side( the Kendo.Mvc.UI.DataSourceRequest object holds the sort, filtering and etc information).  
In order to do that please: 

   1. set the type option as shown below:

"dataSource": {
                "type": 'aspnetmvc-ajax',
                "transport": {
                    "read": {
                        "url": "/Home/Products_Read"
                    },
                    "prefix": ""
                }
.......
}

    2. Include the kendo.aspnetmvc.min.js script. 
    3. By default the .ToDataSourceResult stores the items in Data, so it should be defined in the schema.data

"schema": {
                    "data": "Data",
......
}


Please find attached a sample project that implements the scenario. 

Regards,
Boyan Dimitrov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Dominik
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Dominik
Top achievements
Rank 1
Boyan Dimitrov
Telerik team
Share this question
or