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

Connect js Datamanager to mvc api

Thread ID:





126020 Sep 18,2016 01:18 PM UTC Sep 19,2016 05:13 PM UTC JavaScript 1
Tags: ejDataManager
John Ntovas
Asked On September 18, 2016 01:18 PM UTC

Hello, i have a project and i try to implement a grid with datamanager. The problem is that the code runs correctly on the backend and on the front end but i get an error 500. When i run the bacend on debug mode everything runs ok and i dont see any error, but still returns error 500(internal server error) on the client side.

Backend(it is just mvc asp with added libraries, not syncfusion project):
public DataResult MdlActions(DataManager dm)
            using (Entities db = new Entities())
                IEnumerable data = db.mdlTable.AsQueryable();
                DataOperations operation = new DataOperations();
                int cn = data.AsQueryable().Count();
                data = operation.Execute(data, dm);
                DataResult dt = new DataResult();
                dt.result = data.ToList<mdl>();
                dt.count = cn;
                return data.ToList<mdl>();

FrontEnd (electron app):
function drawGrid() {
var dataManger = ej.DataManager({
url: 'http://localhost/api/Mdl/',
adaptor: new ej.UrlAdaptor()
var query = ej.Query().take(3);
var execute = dataManger.executeQuery(query) 
.done(function (e) {
 //this is just to check if succesfull.

Dhivyalakshmi Thirumurugan [Syncfusion]
Replied On September 19, 2016 05:13 PM UTC

Hi John, 

Thanks for contacting Syncfusion support. 

We are unable to reproduce the reported issue at our end. We have prepared the sample for your reference. Please find the sample link below. 

Kindly check the above sample and still if you face any difficulties means, then revert us by modifying the above sample or provide your issue reproducible sample and we will happy to help you. 

Please let us know if you have any queries. 



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