Id like to extend to the AutoComplete helper to pass in a data-bding html 5 attribute, I have the following:-
@(Html.Kendo().AutoComplete()
.Name("productAutoComplete")
.DataTextField("id")
.DataTextField("name")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("ProductSuggestions", "Search")
.Data("onAdditionalData").Type(HttpVerbs.Get);
}).ServerFiltering(true);
})
.Enable(true)
)
I want to be able to add a new HtmlAttrobute something like this:-
.HtmlAttributes(new[] { "data-bind='executeOnEnter: products'" })
So that I can use a knockoutJS custom binding - can anyone help me with this?
@(Html.Kendo().AutoComplete()
.Name("productAutoComplete")
.DataTextField("id")
.DataTextField("name")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("ProductSuggestions", "Search")
.Data("onAdditionalData").Type(HttpVerbs.Get);
}).ServerFiltering(true);
})
.Enable(true)
)
I want to be able to add a new HtmlAttrobute something like this:-
.HtmlAttributes(new[] { "data-bind='executeOnEnter: products'" })
So that I can use a knockoutJS custom binding - can anyone help me with this?