My client has a requirement for a drop down to appear in two different places on the same form. This hasn't been an issue until I went to convert all my dropdowns to Telerik dropdowns. To maintain integrity I attached a handler that meant that changing one dropdown also affected the other.
It doesn't seem, however, that Telerik likes this. It seems to only affect the first instance of the element it encounters on the page.
01.
@(Html.Kendo().DropDownListFor(model => model.GrantType)
02.
.OptionLabel(
"Please Select..."
)
03.
.BindTo((IEnumerable<SelectListItem>)ViewBag.GrantTypes)
04.
.Filter(FilterType.Contains)
05.
.Events(events =>
06.
{
07.
events.Select(
"caseBuildingGrantTypeSelectHandler"
);
08.
events.DataBound(
"caseBuildingGrantTypeOnDataBoundHandler"
);
09.
})
10.
)
The second element for this model property is left as a text element.
See the attached file for example of what is happening.