I have a EditorTemplate which is:
@model string
@(this.Html.Kendo().DropDownList()
.Name(this.ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
.Value(this.Model)
.HtmlAttributes(new { style = "width: 220px;"})
.OptionLabel("Select)
.DataValueField("Value")
.DataTextField("Text")
.DataSource(ds => ds.Read(read => read.Action("GetList", "Combo").Data("getAdditionalParam")))
)
I want to get this dropdown in my function:
function
getAdditionalParam(dropDown){
//do stuff with dropDown
//
return { additionParam: 1 }
}
Is there anyway to pass the object itself as parameter?
Thanks,
Ezequiel