<div id="grid" ej-grid e-datasource="data" . . . . . e-toolbarsettings-toolbaritems="tools"> <div e-columns> <div e-column e-field="id" e-textalign="center" e-isprimarykey="true"></div> <div e-column e-field="desc" e-textalign="center"></div> </div> |
Hi James,
Query #2: When I save, it doesn't actually save. In any case, the data does not seem to bind with the scope variable.
We have achieved your requirement by initiating the digest cycle by explicitly calling scope.$digest in the actionComplete event of Grid control and refer to the below code example.
<div id="grid" ej-grid e-datasource="data" e-actionComplete="complete" . . . </div>
<script> angular .module('myApp', [ 'ejangular']) .controller('myCtrl', MyCtrl);
function MyCtrl($scope) { . . . $scope.complete = function(args){ if(args.requestType == "save" || args.requestType == "delete" ) $scope.$digest(); } } </script> |
We have created a sample that can be download from the below link.
http://www.syncfusion.com/downloads/support/forum/121337/ze/F121337-2329735
Regards,
Saravanan A.
Hi James,
Thanks for your update.
We are happy that the provided information helped you.
Regards,
Saravanan A.