Good morning,
I am trying to use a custom template in one column.
I followed the instructions in here and works fine, but I want to do it in a grid that is loaded with the columns property.
When I try to do this, in one case it does not render the grid (if the component is assigned to the template option of the column), in other case the grid is render but without any data (if the component is assigned to the template as a function).
I have created a new vue 3/ Typescripts app added the dependencies and created examples for all cases.
In the `master` branch it works as a column with a template on it.
In the `notWorkingTemplate` branch the component is assigned to the template and it gives an error.
in the `notWorkingTemplateFunction` branch the component is assigned as a function and the grid show no results (but if you set the pagination to true it show 3 different pages).
To try the app you need to `npm install` and `npm run serve` on the root directo
Thank you in advance
ok thanks, i am waiting
@Ajith Govarthan
In what state is the solution of the error?
Regards
methods: {
dataBound: function() {
var gridObj = document.getElementsByClassName("e-grid")[0]
.ej2_instances[0];
let tempCol = gridObj.getColumnByIndex(4);
tempCol.template = this.colTemplate;
tempCol.templateFn = templateCompiler(this.colTemplate);
if (this.isInitial) {
gridObj.refreshColumns();
this.isInitial = false;
}
},
onLoad: function() {
this.isInitial = true;
},
} |
Hello
The example still doesn't work
What is the error?