Filtering, Sorting and paging with e-data-manager adaptor="UrlAdaptor"

Hi,

I am trying to implement Filtering and Sorting on a ejs-grid in a ASP.Net Core 3.1 Razor page.

Now if I set the datasource of the grid, then Filter, Sort & Paging works automatically, without a round-trip to the server.

However instead of this, I set the property as below <e-data-manager adaptor="UrlAdaptor" url="/Employees/Index?handler=DataSource", the automatic filtering and sorting no longer works, and I have to write code in the OnPostDataSource method in the model.

Is there a way for these 3 features to work automatically like before without having to write code in the model.

Thanks
Avinash Tauro

6 Replies

RR Rajapandi Ravi Syncfusion Team May 25, 2020 10:47 AM UTC

Hi Avinash, 
 
Greetings from syncfusion support 
 
From validating you query we suspect that you like to perform the paging, sorting and filtering action in the client side. So we suggest you to use remote save adaptor instead of Url adaptor. You may need to perform all Grid Actions in client-side except the CRUD operations, that should be interacted with server-side to persist data. It can be achieved in Grid by using RemoteSaveAdaptor. Please refer the below documentation for more inform information. 
 

Regards, 
Rajapandi R 



AV Avinash May 25, 2020 01:24 PM UTC

Hi,

Thanks for the information. 

The link you gave though was for the JavaScript controls. I found same RemoteSaveAdaptor help for ASP.NET Core at https://ej2.syncfusion.com/aspnetcore/documentation/grid/data-binding/#remote-data

This is however for MVC. Do you have a Razor Page example.

Thanks
Avinash Tauro


AV Avinash May 25, 2020 02:03 PM UTC

I found the Razor page example for my requirement at https://www.syncfusion.com/forums/142877/asp-net-core-razor-pages-grid-ej2-remotesaveadaptor-json-not-working
and it works great. Just what I wanted.

It's just very time consuming to google every time I have a Razor page related query . Can we get a demo/documentation for ASP.Net Core Razor pages along with existing MVC.

Thanks
Avinash Tauro


SK Sujith Kumar Rajkumar Syncfusion Team May 26, 2020 01:47 PM UTC

Hi Avinash, 

We have logged a KB documentation task for this requirement. We will update and refresh it online as soon as possible. 

Let us know if you have any concerns. 

Regards, 
Sujith R 



AV Avinash May 27, 2020 06:39 AM UTC

Thanks, that would be awesome.


SK Sujith Kumar Rajkumar Syncfusion Team May 28, 2020 12:51 PM UTC

Hi Avinash, 

We are glad to hear that. Please get back to us if you require any further assistance 

Regards, 
Sujith R 


Loader.
Up arrow icon