我在我的角度项目中使用DevExtreme产品的dxDataGrid UI小部件。当我想在任何前对话框中使用dxDataGrid ui小部件时,我在浏览器中看到一个错误。实际上dxDataGrid工作正常,但我想知道为什么我在浏览器中看到错误?
我的前对话代码:
public topluFaturaIcerikListGridContainer;
public topluIcerikList = [];
TopluFaturaIcerik() {
var ctrl = this;
var TopluFaturaIcerikDialog = ctrl.exDialog.openPrime({
animation: false,
width: 'auto',
minWidth: '50%',
scope: ctrl.$scope,
cacheTemplate: false,
template: '..',
clickOutsideToClose: false,
controller: function ($scope) {
ctrl.topluFaturaIcerikListGridContainer = {
selection: { mode: 'single' /* 'multiple'*/ },
allowColumnReordering: true,
allowColumnResizing: true,
columnAutoWidth: true,
filterRow: {
visible: false
},
bindingOptions: {
dataSource: 'topluIcerikList'
},
paging: { pageSize: 5 },
pager: {
showPageSizeSelector: true,
allowedPageSizes: [5, 10, 20],
showInfo: true,
infoText: 'Sayfa:{0}/{1} (Toplam: {2} kayıt)'
},
columnWidth: 'auto',
columns: [
{ dataField: "DT_FATURA_KESIM_TARIHI", visible: true, caption: "Fatura Tarihi", dataType: 'date', format: 'dd.MM.yyyy' },
{ dataField: "CH_FATURA_SERI", visible: true, caption: "Fatura Seri" },
{ dataField: "CH_FATURA_NO", visible: true, caption: "Fatura No" },
{ dataField: "FATURA_TIPI", visible: true, caption: "Fatura Türü" },
{ dataField: "CH_IRSALIYE_NO", visible: true, caption: "İrsaliye No" }
]
};
}
});
}

<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
&#13;