Background: I am attempting to work on a grid where one column can have different editor based on the column value in a Grid. I found a working
CodePudding user response:
Use a function to call your function instead of a template string:
{
field: 'editor',
title: 'Editor',
template: function(dataItem) {
return customTemplate(dataItem.type, dataItem.editor);
},
editor: chooseEditor
}