Posted 16 Jul 2012
Link to this post
Can someone please help me figure out how to load data into my dropdown and also trigger an event and pass the text value into the method so I can update my grid. I'm using KendoUI along with MVC3.
here is what I came up with but obviously I need some tweaking.
.Events(e => e.Change("change"))
.BindTo(ViewData["ClassificationItems"] as SelectList) //Not sure where the binding to my controller goes to or how it gets called
public ActionResult Change(string someValue = "")
ViewData["Category"] = "Types";
ViewData["Classifications"] = new SelectList(Classifications.List, "ClassificationText", "ClassificationText", someValue );
var codModels = new List<CodeModel>();
ViewBag.SelectedCatgory = someValue ?? "Type";
if (Request.HttpMethod == "POST")
var model = _codeRepository.Search(someValue ).ToModel();