You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 4, 2019. It is now read-only.
Here I am fetching the alarmTableColumns by a rest call.
Problem : when I declare this options at the end of my restcall (in a callback function) so that my alarmTableColumns are fetched, I get several errors for datatable.js for eg. TypeError: Cannot read property 'length' of undefined
at DataTableController.transposeColumnDefaults ..etc.
The text was updated successfully, but these errors were encountered:
May be it is too late, but for others who still look for an option, i added the dtable in the controller only after the rest call is completed and it is working fine for me.
var el = $compile('<dtable options="options" rows="dataMatrix" expanded="expanded" on-tree-toggle="treeToggled(cell)"></dtable>')($scope);
$('#perm-matrix-table').append(el);
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
my code goes like this:
$scope.options = {
rowHeight: 50,
headerHeight: 50,
footerHeight: 50,
scrollbarV: false,
columns: alarmTableColumns,
selectable: true,
multiSelect: true,
resizable:true,
width:1350,
cellRenderer:true,
group:false,
columnMode: 'flex'
Here I am fetching the alarmTableColumns by a rest call.
Problem : when I declare this options at the end of my restcall (in a callback function) so that my alarmTableColumns are fetched, I get several errors for datatable.js for eg. TypeError: Cannot read property 'length' of undefined
at DataTableController.transposeColumnDefaults ..etc.
The text was updated successfully, but these errors were encountered: