This question is locked. New answers and comments are not allowed.
Hello,
I have the following code:
where ViewBag.AUSStatus is a SelectList, but I get the exception described in the title. Furthermore, even if i comment out the line that does the databind, I get the same error.
Any help will be greatly appreciated.
Thank you
I have the following code:
@
using Telerik.Web.Mvc.UI
@{
Layout =
null;
}
@( Html.Telerik().DropDownList()
.Name(
"AUSStatus")
.BindTo((
SelectList)ViewBag.AUSStatus)
//.SelectedIndex(1)
)
where ViewBag.AUSStatus is a SelectList, but I get the exception described in the title. Furthermore, even if i comment out the line that does the databind, I get the same error.
@
using Telerik.Web.Mvc.UI
@{
Layout =
null;
}
@( Html.Telerik().DropDownList()
.Name(
"AUSStatus")
//.BindTo((SelectList)ViewBag.AUSStatus)
//.SelectedIndex(1)
)
Any help will be greatly appreciated.
Thank you