Hello,
I would like to insert a dropdownlist inside a grid column(not using edit mode) by converting the widget to a client side template. The template works and outputs a simple input, but the script that initializes the dropdown is not ran.
I am obtaining the client side template using this:
And then apply it to the AJAX bound grid like this:
If i try to render it inside the toolbar(with a different name of course) it works fine:
But the same technique seems not to be working with row templates.
How can i achieve this?
I would like to insert a dropdownlist inside a grid column(not using edit mode) by converting the widget to a client side template. The template works and outputs a simple input, but the script that initializes the dropdown is not ran.
I am obtaining the client side template using this:
var ruleSetDropDown = Html.Kendo().DropDownList()
.Name("RuleSets_#=Id#")
.BindTo(Model.RuleSets)
.DataTextField("Name")
.DataValueField("Id")
.ToHtmlString();
And then apply it to the AJAX bound grid like this:
column.Template(t => t)
.ClientTemplate(ruleSetDropDown.ToString())
.Title("")
If i try to render it inside the toolbar(with a different name of course) it works fine:
.ToolBar(t =>
{
t.Template(ruleSetDropDown);
})
But the same technique seems not to be working with row templates.
How can i achieve this?