When the are building the grid, will bu useful to have and option to set the page number that you want to display .DataSource(dataSource => dataSource .Ajax().PageSize(Model.PageSize).Page(Model.Page) .ServerOperation(true) // Paging, sorting, filtering and grouping will be done client-side .Read(read => read.Url("/results/gethomes"))
Extend the Kendo Grid to be available to set the Start Page, in this moment when you build Grid using the Kendo UI Mvc html the start or default page is always 1, will be good to have the option to change the star page to another number @Html.Kendo().Grid.Name("grid") .Columns(columns => { columns.Bound(c => c.Selected).Sortable(false).Title("<input type=\"checkbox\" id=\"selectAll\" class=\"k-checkbox\"><label class=\"k-checkbox-label\" for=\"selectAll\"></label>") .ClientTemplate("#=window.communityResults.getCheckBox(Id,BuilderId,Type)#").IncludeInMenu(false).Sortable(false).Width(26); }) .Pageable(pager => pager.PageSizes(new[] { 24, 48, 96 }).ButtonCount(15)).Sortable() .Events(events => events.DataBound("function(){ window.communityResults.previewBound();}")) .Selectable(selectable => selectable.Mode(GridSelectionMode.Single).Type(GridSelectionType.Row)) .DataSource(dataSource => dataSource .Ajax().PageSize(24).Page(2)
Indeed currently there's no Page setting exposed for the DataSource via the grid MVC server wrapper, Pablo. Please report this via our support mediums at telerik.com (forums or support system) to be addressed in an upcoming version of the product. Thanks for your cooperation.
This is in javascript, I am say that will be good if with that option on Html.Kendo().Grid helper In my case becuase I have the ServerOperation on true, I dont want to load the data on the grid and then with javascript go to the page that I need .DataSource(dataSource => dataSource .Ajax().PageSize(24) .ServerOperation(true) // Paging, sorting, filtering and grouping will be done client-side .Read(read => read.Url("/results/gethomes")) Thanks
Thanks for the suggestion, Pablo. This should be possible by setting the DataSource > Page configuration to point to the active page you would like to be displayed. See this section of the client API for reference: http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#configuration-page