cannot use a lambda expression as an argument to a dynamically

Friday, July 4, 2014

I am trying to add a change event to my kendo dropdownlist but I am getting an error 'cannot use a lambda expression as an argument to a dynamically' at the event line.



@( Html.Kendo().DropDownList()
.Name("DataType")
.DataTextField("Text")
.DataValueField("Value")
.BindTo(ViewBag.DataType)
.Events(e => e.Change("OnSearchTypeChange"))
)


Any thoughts, thanks







http://ift.tt/1rt25nu