Not quite sure if I'm going about this wrong or it's the widget that has a bug in it.
Whenever I use the .Event() in my code, the controller does not work properly. It transforms back to a textbox, and does not display the elements at all. I've even tried this with your code, found here:
http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/multiselect/overview
This is your code:
This is my code:
Doing this results in the widget breaking, somehow. See attached images. I should also mention that the widget, when initialized without the .Event(), works. Allthough, it flickers before the initialization is completed and the inputbox, textbox or whatever it is before the css-styling is applied to it, appears.
Whenever I use the .Event() in my code, the controller does not work properly. It transforms back to a textbox, and does not display the elements at all. I've even tried this with your code, found here:
http://docs.kendoui.com/getting-started/using-kendo-with/aspnet-mvc/helpers/multiselect/overview
This is your code:
@(Html.Kendo().MultiSelect()
.Name("multiselect")
.BindTo(new string[] { "Item1", "Item2", "Item3" })
.Events(e => e
.Select("multiselect_select")
.Change("multiselect_change")
)
)
<
script
>
function multiselect_select() {
//Handle the select event
}
function multiselect_change() {
//Handle the change event
}
</
script
>
@(Html.Kendo().MultiSelect()
.Name("tags")
.Placeholder("No tags selected for this unit")
.BindTo(new SelectList(Model.TagNames))
.Value(Model.TagNames)
.Events(e => e
.Select("tags_select")
.Change("tags_change")
)
)
<script>
...
</script>