Ajax Grid and ServerOperation(false)

1 Answer 5120 Views
Grid
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Robert Madrian asked on 18 Nov 2016, 10:53 AM

Hi,

I have tested the differences between setting ServerOperation(true) and ServerOperation(false)...

  • if I set it to false no progress spinner is displayed during request the of the data - why?
  • if I set false it is not enough to use $("#grid").data("kendoGrid").dataSource.page(1) to refresh the data - I have to set:

     

    $("#grid").data("kendoGrid").dataSource.read();
    $("#grid").data("kendoGrid").dataSource.page(1);

     

this is because of the Client side paging?

Are there other differences between this modes which I have to consider?
(I didn't find detailed information about ServerOperation(true/false)) and it's consequences)

robert

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Konstantin Dikov
Telerik team
answered on 22 Nov 2016, 10:20 AM
Hello Robert,

When ServerOperation is enabled, all data operations like paging, sorting, grouping, etc. will be performed on server-side. When they are disabled, those operations will be performed on client and the entire data set will be available for the DataSource:
As for the progress indicator, since no requests are made when the server operations are disabled, no progress indicator will be displayed.

If any other questions arise on this matter, please feel free to contact us again.


Regards,
Konstantin Dikov
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Afshin
Top achievements
Rank 1
commented on 07 Sep 2020, 08:04 AM

I'm binding server side data with kendo grid data source on ajax success.But i also want refresh grid after data binding with grid.datasource and also need to reset page number. But i don't want to call read method for server side request. i want to refresh grid with existing updated datasource. Every time when i trying to reset page using grid.datasource.page(1) , it's calling read method that i don't want. Please suggest me..
Alex Hajigeorgieva
Telerik team
commented on 09 Sep 2020, 07:22 AM

Hi, Afshin,

When the UI for ASP.NET MVC Grid is configured for server operations, the only available data is the current page and pageSize. It is expected that when the data source page() method is used, the grid must make a request to obtain that data.

To start using client-side data and not make requests when paging, you should change the data source with the setDataSource() method:

https://docs.telerik.com/kendo-ui/api/javascript/ui/grid/methods/setdatasource

In case you require further assistance, provide any code snippets that are related to the scenario.

Kind Regards,
Alex Hajigeorgieva
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
Grid
Asked by
Robert Madrian
Top achievements
Rank 1
Veteran
Iron
Answers by
Konstantin Dikov
Telerik team
Share this question
or