Excellent Widget! Really appriciated, but somehow I can't seem to get the headertemplate working. I don't see it appear in the dropdown header. While i inspect the DOM with chrome dev tools the 'HEADER' phrase is not found. It look's like this method does nothing. or am i mistaken? And it would also be nice if the widget would have lambda selectors for allmost all property's. Most widget have these selectors, only using string selectors make it error prone (model change is not reflected in this string selector)
@(Html.Kendo().MultiColumnComboBoxFor(m => m)
.DataTextField("Afkorting")
.DataValueField("idPersoneel")
.Filter("contains")
.FilterFields(new string[] { "Afkorting", "OpgemaakteNaam", "Team" })
.Columns(columns =>
{
columns.Add().Field("Afkorting").Title("Afkorting").Width("50px");
columns.Add().Field("OpgemaakteNaam").Title("Naam").Width("120px");
columns.Add().Field("Team").Width("60");
columns.Add().Field("Omvang").Width("50");
columns.Add().Field("Resturen").Width("50");
})
.HeaderTemplate("HEADER")
.FooterTemplate("Total \\#: instance.dataSource.total() \\# items found")
.HtmlAttributes(new { style = "width:100%;" })
.Height(500)
.DataSource(ds =>
{
ds.Read(read => read.Action("Personeelsleden", "Personeel", new { Area = "Tabellen" }).Data("passPersoneel"));
ds.Events(e => e.Error("DataSourceRequestErrorHandler"));
}
)
.ToClientTemplate()
)
@(Html.Kendo().MultiColumnComboBoxFor(m => m)
.DataTextField("Afkorting")
.DataValueField("idPersoneel")
.Filter("contains")
.FilterFields(new string[] { "Afkorting", "OpgemaakteNaam", "Team" })
.Columns(columns =>
{
columns.Add().Field("Afkorting").Title("Afkorting").Width("50px");
columns.Add().Field("OpgemaakteNaam").Title("Naam").Width("120px");
columns.Add().Field("Team").Width("60");
columns.Add().Field("Omvang").Width("50");
columns.Add().Field("Resturen").Width("50");
})
.HeaderTemplate("HEADER")
.FooterTemplate("Total \\#: instance.dataSource.total() \\# items found")
.HtmlAttributes(new { style = "width:100%;" })
.Height(500)
.DataSource(ds =>
{
ds.Read(read => read.Action("Personeelsleden", "Personeel", new { Area = "Tabellen" }).Data("passPersoneel"));
ds.Events(e => e.Error("DataSourceRequestErrorHandler"));
}
)
.ToClientTemplate()
)