Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Passing current DropDown as parameter

$
0
0

 

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:

functiongetAdditionalParam(dropDown){
//do stuff with dropDown

//

 return { additionParam: 1 }
}

 

Is there anyway to pass the object itself as parameter?

 

Thanks,

Ezequiel


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>