When using clasic ASP.NET Core approach user can define custom editor template like this:
https://100001.link/ https://192168101.dev/ https://1921681254.link/
f.Add(p=>p.CategoryID).Label("Category").DefaultValue(1).EditorTemplateHandler("categoryDropDownEditor");
function categoryDropDownEditor(container, options) {
$('<
input
data-bind
=
"value: value"
name
=
"' + options.field + '"
/>')
.appendTo(container)
.kendoDropDownList({
dataTextField: "CategoryName",
dataValueField: "CategoryID",
dataSource: {
type: "odata",
transport: {
}
}
});
}
Is this possible to achieve using Tag helpers and is there any way to pass the parameter/s to the categoryDropDownEditor function?