Note that there are some explanatory texts on larger screens.

plurals
  1. POAngularjs ng-grid REST calls
    primarykey
    data
    text
    <p>Folks,</p> <p>I am trying to make my ng-grid make rest calls upon editing.</p> <p>I have followed the clue from this post: <a href="https://stackoverflow.com/questions/15647981/angularjs-and-ng-grid-auto-save-data-to-the-server-after-a-cell-was-changed">AngularJS and ng-grid - auto save data to the server after a cell was changed</a></p> <p>However I keep getting this error, if anyone has faced anything similar, pleas advice:</p> <pre><code>Error: No controller: ngModel at Error (&lt;anonymous&gt;) at getControllers (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js:4823:19) at nodeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js:4960:35) at compositeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js:4550:15) at compositeLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js:4553:13) at publicLinkFn (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js:4455:30) at Object.&lt;anonymous&gt; (http://www.yojit.com/app/lib/angular/ng-grid.js:2691:13) at Object.applyFunction [as fn] (http://www.yojit.com/app/#/employeelist:778:50) at Object.Scope.$digest (https://ajax.googleapis.com/ajax/libs/angularjs/1.1.5/angular.js:8811:27) at Object.$delegate.__proto__.$digest (http://www.mysite.com/app/#/employeelist:844:31) &lt;input type="text" ng-class="'colt' + col.index" ng-input="row.entity.firstname" ng-blur="updateEntity(col, row)"&gt; </code></pre> <p>my ng-grid looks like this: in my html file:</p> <pre><code>&lt;div class="gridStyle" ng-grid="gridOptions"&gt; &lt;/div&gt; </code></pre> <p>in my controller:</p> <pre><code> var nameEditableTemplate = "&lt;input type=\"text\" ng-class=\"'colt' + col.index\" ng-input=\"COL_FIELD\" ng-blur=\"updateEntity(col, row)\"/&gt;"; $scope.gridOptions = { data: 'employees', columnDefs: [ {displayName:'Id', field:'id'}, {displayName:'First', field:'firstname',enableCellEdit:true, editableCellTemplate:nameEditableTemplate }, {displayName:'Middle', field:'middlename'} , {displayName:'Last', field:'lastname'} ], enableCellSelection: true, multiSelect:false, }; //end of grid options </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload