We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Syntax for datasource URL handler

Thread ID:





127992 Dec 23,2016 12:50 AM UTC Dec 23,2016 11:04 AM UTC ASP.NET Core 1
Tags: Grid
R Brian Lindahl
Asked On December 23, 2016 12:50 AM UTC

i have a grid with a datamanager like:

<e-datamanager url="/Customers/DataSource"

my handler in the controller is

public ActionResult DataSource(DataManager dm)

as it was in mvc5. However, although I can see the params being passed properly from the web page (skip: 0 and take: 12), the properties of the object passed to the DataSource method are 0, so no skip/take happens server-side.

I saw elsewhere that the insert-url et al. have a "CRUDModel<>" wrapper around the param type, which avoids a similar problem there... is there something similar needed for the DataManager?

Jayaprakash Kamaraj [Syncfusion]
Replied On December 23, 2016 11:04 AM UTC

Hi Brian,   
Thank you for contacting Syncfusion support.   
For ASP.NET core sample, we can get the dynamic value using “[FromBody] ” as follows,    
<ej-grid id="GridContainer" 
    <e-datamanager url="/Home/DataSource" insert-url="/Home/CellEditInsert" update-url="/Home/CellEditUpdate" remove-url="/Home/CellEditDelete" adaptor="UrlAdaptor"></e-datamanager> 
namespace WebApplication8.Controllers 
    public class HomeController : Controller 
  public ActionResult DataSource([FromBody]DataManager dm) 
// do your operations here 
        public ActionResult CellEditUpdate([FromBody]CRUDModel<Orders> value) 
          // do your operations here 
        public ActionResult CellEditInsert([FromBody]CRUDModel<Orders> value) 
             // do your operations here  
        public ActionResult CellEditDelete([FromBody]CRUDModel<Orders> value) 
              // do your operations here 

Jayaprakash K. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon