So i have a ComboBox in a reusable partial view. When i try to use getAddionalData and pass more parameters to the controller, is there a way i can pass the input of the combobox to the function? I can't directly call it in the getAddionalData because there may be multiple and I won't know the exact id of which is calling the function. I tried to use the 'this' qualifier in the function but that only gives me the url of the read. For instance, on the dataBound function, i can call this.open() and it'll open my combobox. I can't use that here. Any idea?
@(Html.Kendo().ComboBoxFor(m=>m.Id) .DataTextField("xxxx") .DataValueField("xxxx") .Placeholder("xxxx") .MinLength(3) .AutoBind(false) .Events(e=>e.DataBound("functionCall").Change("functionCall")) .TemplateId("templateId") .HtmlAttributes(new { @class = "form-control", style = "width:100%" }) .Filter("contains") .Delay(500) .DataSource(source => source.Read(read => read.Action("method", "controller").Data("getAdditionalData(#=input.val()#)")) .ServerFiltering(true)) .Height(500) )