Dear Syncfusion Team,
how is it possible to use a template with dynamic columns?
I try to create a data grid with dynamic columns/data and templates.
Columns and data will be coming from a service in the future.
To write a short demo i extended a sample of Rajapandiyan Settu (Syncfusion Team) found in this thread: https://www.syncfusion.com/forums/168243/dynamic-columns-in-datagrid-with-template-in-separate-file-vue-3
(The upload of my files failed so i will copy what i changes)
[App.vue]
First i added a new grid:
<ejs-grid :dataSource='data' :columns="columns" :allowPaging="true">
</ejs-grid>
Second i added the columns:
columns: [
{
field: "CustomerID"
},
{
field: "ShipCountry"
},
{
headerText: 'Employee Image',
template: "colTemplate"
}
]
The result is a table with the information: "No records to display". When i remove the template from the columns the data is shown.
Kind Regards,
Yasin