Hello,
I use dropdownlist as an editortemplate for my Kendo Grid like this:
columns.Bound(c => c.Test.Text).Width("5%").EditorTemplateName("Test").EditorViewData(new { data= ViewData["data"] });
and this is my dropdownlist that is in the editortemplates folder:
@(Html.Kendo().DropDownList()
.Name("Test")
.DataTextField("Text")
.DataValueField("Text")
.AutoBind(true)
.DataSource(c =>
{
c.Read(k => k.Action("GetMethod", "Controller", new { data = ViewData["data"] }));
})
)
that works fine. However, there is a problem about refreshing datasource of this dropdownlist. Because i can not find any way to access dropdownlist and refreshing its datasource. How can i do this?, how can i trigger read action of dropdownlist?
I use dropdownlist as an editortemplate for my Kendo Grid like this:
columns.Bound(c => c.Test.Text).Width("5%").EditorTemplateName("Test").EditorViewData(new { data= ViewData["data"] });
and this is my dropdownlist that is in the editortemplates folder:
@(Html.Kendo().DropDownList()
.Name("Test")
.DataTextField("Text")
.DataValueField("Text")
.AutoBind(true)
.DataSource(c =>
{
c.Read(k => k.Action("GetMethod", "Controller", new { data = ViewData["data"] }));
})
)
that works fine. However, there is a problem about refreshing datasource of this dropdownlist. Because i can not find any way to access dropdownlist and refreshing its datasource. How can i do this?, how can i trigger read action of dropdownlist?