Hi there, I was wondering if someone could help me. How can I bind my dropdown list to a viewbag to ensure it's getting it's data from the right place? I found a couple of guides but they didn't work for my scenario. Here is my code.
// #DDL - Broker Companies
IEnumerable<SelectListItem> thestats = seabrokersData.tbl_requirement_status
.Select(c =>
new
SelectListItem
{
Value = c.id.ToString(),
Text = c.thet_status
});
ViewBag.theStatus = theStatus;
I would like my Kendo Dropdown to use the above viewbag to populate itself. How can I do this?
Many thanks