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

DataManager - executeLocal() : Json data is required to execute

Thread ID:

Created:

Updated:

Platform:

Replies:

121798 Jan 26,2016 02:02 PM UTC Oct 31,2017 05:00 AM UTC JavaScript 5
loading
Tags: ejGrid
Antonio Terron
Asked On January 26, 2016 02:02 PM UTC


Hello,

I'm receiving the above error when binding data received from a websercice to ejGrid.

Please find in the attached file an image with error in the console window (error.prg), the markup files (*.HTML), the piece of code with the controller where the error is raising (code.txt) and the results from the webservice (results.txt).

Any help would be appreciated.
Thank you in advance

Attachment: error_63f03847.rar

Balaji Marimuthu [Syncfusion]
Replied On January 27, 2016 12:46 PM UTC

Hi Antonio,

Thanks for contacting Syncfusion support.

We have checked the attached code and error screenshots also created a sample similar with the provided code. But, we were unable to reproduce the issue from our side. Refer to the sample,

Sample-AngularGrid

Please share more information to find the cause of issue and provide a better solution at the earliest,

1.     Essential Studio and Browser version details.
2.      Runnable sample or modify the attached sample as issue reproducible.
3.       We suspect that issue is occurred when binding the null value to the $scope.data. So, please ensure whether you have changed the $scope.data value or not in your application.

Regards,
Balaji Marimuthu

Antonio Terron
Replied On January 28, 2016 10:07 AM UTC

Solved.

Forgot JSON.parse.

Thanks for your answer.

Balaji Marimuthu [Syncfusion]
Replied On January 29, 2016 05:36 AM UTC

Hi Antonio,

Thanks for the update.

Please get back to us if you need any further assistance.

Regards,
Balaji Marimuthu

Leroy Duncan
Replied On October 30, 2017 07:13 PM UTC

Where did you add JSON.Parse()??? I am experienceing the same issue and could use a pointer. 

Cheers!


Saravanan Arunachalam [Syncfusion]
Replied On October 31, 2017 05:00 AM UTC

Hi Leroy, 
By default, the JSON.Parse() method used to parse the json string into the json data. So, we should parse the jsong string as json data using JSON.Parse(), if we return the data from the controller as a json string.  
In the provided example on 26/01/2016, we should assign the parsed data in the $scope.data that can be refer from the below code example. 
.controller('ViewCheckOutsCtrl', ['$scope', '$modal', '$translate', '$locale', '$location', function ($scope, $modal, $translate, $locale, $location) { 
      
    $scope.data = []; 
          . . . 
        $scope.data = [] 
        var promise = dataman.executeQuery(query); 
        promise.done(function (e) { 
            modalInstance.close(); 
            $scope.data = JSON.Parse(e.result); 
        }); 
    }; 
 
Regards, 
Saravanan A. 


CONFIRMATION

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

or the page will be automatically redirected to 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

;