Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150391 | Jan 5,2020 12:37 PM UTC | Jan 8,2020 06:07 AM UTC | Vue | 5 |
![]() |
Tags: Data Grid |
let cTemp = function() {
return {
template: Vue.component("columnTemplate", {
template: `<a rel='nofollow' href="#">{{CustomerID}}</a>`,
data: function() {
return {
data: {}
};
},
computed: {
CustomerID: function() {
return this.data.assignee.name;
}
}
})
};
};
export default {
data() {
return {
formatoptions: { type: "dateTime", format: "M/d/y hh:mm:ss ss" },
data: nested,
isInitial: false
};
},
methods: {
dataBound: function() {
var gridObj = document.getElementsByClassName("e-grid")[0]
.ej2_instances[0];
let tempCol = gridObj.getColumnByField("assignee.name");
tempCol.template = cTemp;
tempCol.templateFn = templateCompiler(cTemp);
if (this.isInitial) {
gridObj.refreshColumns();
this.isInitial = false;
}
},
onLoad: function() {
this.isInitial = true;
}
},
provide: {
grid: [Filter, Page]
}
};
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.