Hi,
Since we've updated to the 2015 Q1 update a number of our DropDownLists have stopped selecting the top item on page load. This is the issue we're having, seems to be consistent with the following criteria:
-DropDownListFor a default int property (so value is 0 by default)
-DataSource is a small collection contained in the ViewBag with no item of ID 0
eg
@(Html.Kendo().DropDownListFor(x => x.ClientID)
.DataTextField("name")
.DataValueField("id")
.BindTo((System.Collections.IEnumerable)ViewBag.Clients)
)
These were working before the update, and just defaulting to an index of 1, but even trying to set the SelectedIndex property fails to alleviate the problem. Any advice you might have would be much appreciated.
Thanks,
Kevin
Since we've updated to the 2015 Q1 update a number of our DropDownLists have stopped selecting the top item on page load. This is the issue we're having, seems to be consistent with the following criteria:
-DropDownListFor a default int property (so value is 0 by default)
-DataSource is a small collection contained in the ViewBag with no item of ID 0
eg
@(Html.Kendo().DropDownListFor(x => x.ClientID)
.DataTextField("name")
.DataValueField("id")
.BindTo((System.Collections.IEnumerable)ViewBag.Clients)
)
These were working before the update, and just defaulting to an index of 1, but even trying to set the SelectedIndex property fails to alleviate the problem. Any advice you might have would be much appreciated.
Thanks,
Kevin