Custom format function does not get called
I have a data grid where one of the column is of type Date and the data for that is returned in form of ticks(for eg /Date(1375963513167)/).
Direct binding to this column does not work even if I set the data type for column to Date.
Is there any solution for this?
Additionally, I tried using custom format function for the column as below:
format = {
formatter: function (value) {
console.log(value);
return Date.now();
},
parser: function (value) {
return value;
}
}
_dataGridColumn.format = format;
But the formatter function is never called.
Hence in addition to the above question, how do I implement format function to change the date from ticks to local date format?
链接地址: http://www.djcxy.com/p/31096.html上一篇: 带有Angular的DevExtreme DataGrid:在编辑后删除自动保存
下一篇: 自定义格式函数不会被调用