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.
Unfortunately, activation email could not send to your email. Please try again.

Angularjs

Thread ID:

Created:

Updated:

Platform:

Replies:

120213 Sep 10,2015 04:16 PM Sep 14,2015 05:57 AM JavaScript 3
loading
Tags: ejGrid
Tomasz Pietryka
Asked On September 10, 2015 04:16 PM

Hi,

I am trying to run examples that use AngularJs with ejGrid that are on the web but i am getting error:

angular.js:12416 DataManager - executeLocal() : Json data is required to execute
Error: DataManager - executeLocal() : Json data is required to execute
    at u (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:79674)
    at Object.t.DataManager.executeLocal (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:26506)
    at Object.t.widget._ensureDataSource (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:1780571)
    at Object.t.widget._checkDataBinding (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:1765373)
    at Object.t.widget._init (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:1761716)
    at Object.<anonymous> (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:16166)
    at t.widget.n.fn.(anonymous function) [as ejGrid] (http://localhost:1480/Scripts/ej/ej.web.all.min.js:10:17252)
    at c.directive.n.extend.link (http://localhost:1480/Scripts/ej/ej.widget.angular.min.js:10:7092)
    at invokeLinkFn (http://localhost:1480/Scripts/angular.js:8746:9)
    at nodeLinkFn (http://localhost:1480/Scripts/angular.js:8246:11) <div id="Grid" ej-grid="" e-datasource="data" e-allowpaging="true" class="e-grid e-js e-waitingpopup" tabindex="">

Isuriya Rajan [Syncfusion]
Replied On September 11, 2015 04:31 AM

Hi Tomasz,

Thanks for contacting Syncfusion support.

We checked your script error screenshot and suspect that the $scope.data is not referred in your application. Please ensure this in your project,
  


<script>  

       //JSON grid data

var obj = [

                { "EmployeeID": 1, "LastName": "Davolio", "FirstName": "Nancy", "Title":"Sales Representative", "City": "Seattle", "Country": "USA" },

                { "EmployeeID": 2, "LastName": "Fuller", "FirstName": "Andrew", "Title":"Vice President, Sales", "City": "Tacoma", "Country": "USA" },

                

       ];

       

    angular.module('listCtrl', ['ejangular'])

    .controller('PhoneListCtrl', function ($scope) {

        $scope.data = obj; //Grid data bound

    });
    </script>



We have created a sample in jsPlayground,  

Sample

Regards,
Isuriya R


Tomasz Pietryka
Replied On September 11, 2015 12:06 PM

Hi,

 I did copy/paste from that example and still getting same error.

Tom

Isuriya Rajan [Syncfusion]
Replied On September 14, 2015 05:57 AM

Hi Tomasz,

We regret for the inconvenience caused.



We have analysed the reported issue with our sample. We are unable to reproduce the issue. Please share the following details to find the cause of the issue

1.      Please provide your grid rendering code snippet or modify our sample to reproduce your issue.

2.     Could you ensure that your given dataSource is same as in the provided sample dataSource?


We have created a sample in jsPlayground,  
Sample
Regards,
Isuriya R


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.

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.

;