Is that doable? If so, how should I fix my code? Any idea?
I'm trying to display the content of a Kendo UI Grid dataSource schema model field as an HTML hyperlink. However, I'm getting its content as a string instead.
Here is my code:
var initDSStock = [
{% for ligne in liste_logements %}
{% set logement = ligne.logement %}
{
log_etat_log: 'test'
},
{% endfor %}
];
var dataSource = new kendo.data.DataSource({
pageSize: 25,
data: initDSStock,
schema: {
model: {
fields: {
log_etat_log: { template: '<a href="\\#">#= log_etat_log#</a>' }
},
},
}
});
grid.data("kendoGrid").setDataSource(dataSource);