Open mary1987 opened 10 years ago
I'm facing the same problem. What I did to solve this is to remove jaydatamodules/angular, do not set angular to have dependency on jaydata. After that the error is gone.
when i removed jaydatamodules/angular, i faced with this error:
Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.18/$injector/modulerr?p0=app&p1=Error%3A%20…%2Flocalhost%3A4203%2FScripts%2Fangular-1.2.18%2Fangular.min.js%3A33%3A139)
here is my scripts:
<link href="~/Content/kendo/2013.1.514/kendo.default.min.css" rel="stylesheet" />
<link href="~/Content/kendo/2013.1.514/kendo.rtl.min.css" rel="stylesheet" />
<link href="~/Content/LookUp.css" rel="stylesheet" />
<script src="~/Scripts/angular-1.2.18/angular.min.js"></script>
<script src="~/Scripts/datajs-1.0.3.min.js"></script>
<script src="~/Scripts/jaydata-1.3.6/jaydata.js"></script>
<script src="~/Scripts/jaydata-1.3.6/jaydatamodules/deferred.js"></script>
<script src="~/scripts/jaydata-1.3.6/jaydatamodules/angular.js"></script>
<script src="~/Scripts/kendo/2013.1.514/kendo.all.min.js"></script>
<script src="~/Scripts/kendo/2013.1.514/kendo.web.min.js"></script>
<script src="~/Scripts/kendo/2013.1.514/kendo.aspnetmvc.min.js"></script>
<script src="~/Scripts/jaydata-1.3.6/jaydatamodules/kendo.min.js"></script>
<script src="~/Scripts/ViewModels.js"></script>
<script src="~/Scripts/App/app.js"></script>
<script src="~/Scripts/App/Services/DataSource.js"></script>
<script src="~/Scripts/App/Directives/lookup-directive.js"></script>
<script src="~/Scripts/App/Directives/grid-directive.js"></script>
<div id="mvvmGrid" crud-grid data-role="grid"
data-selectable="true" data-height="450"
data-sortable="true"
data-editable="inline"
data-filterable="true"
data-toolbar='["create", "save", "cancel"]'
data-columns='[
{ field: "Name", title: "نام", width: "180px" },
{ field: "Created", title: "تاریخ", width: "200px" },
{ field: "LargeNum", title: "عدد نمایشی", width: "180px" },
{ field: "Index",hidden:true },
{ command :["edit", "destroy", "update"]}
]'
data-pageable="{ refresh: true, pageSizes: true }"
data-source="ds">
</div>
i tried to use kendo grid by crud Operation that cooperate with Jaydata and angularjs to create DataSource and implement crud Operation.but when i update or create a record after submit on server i have an error in kendo.js of jayadataModules.because the save funcion of entity in angular(in jaydataModules)return promise object that contains catch,finaly,then function and doen't have fail function.
here is my jaydata context:
app.js:
DataSource.js:
grid-directive.js:
ComplexEntityController:
}
when i update record i have an error:'undefined is not a function' on kendo.js at this line :
because the save function has no fail function . Where is my mistake?