This is a migrated thread and some comments may be shown as answers.

Ajax DropDown with javascript parameter

1 Answer 97 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Ezequiel
Top achievements
Rank 2
Ezequiel asked on 21 May 2014, 05:45 PM
we have an EditorTemplate which is:
1.<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<int?>" %>
2.<%= this.Html.Kendo().DropDownList().DataSource(ds => ds.Read(read => read.Action("GetListPort","AjaxCombo")))
3..Name(this.ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty))
4..HtmlAttributes(new { style = "width:99%;" })
5.%>

this is kind of a cascade, but as it used in multiples page, and some pages this is used twice.
I want to refresh after changing another combo or radio button.

in Telerik MVC Extensions we had something like this:
1.function onDropDownDataBinding(e) {
2.     var val1 = $('#First').data('tDropDownList').value();
3.     e.data = $.extend({}, e.data, {parameter: val1});
4.}
In other page, val1 would be from  $('#Other').data('tDropDownList').value()


How can we do this for Kendo UI DropDownList?

thanks,
Ezequiel

1 Answer, 1 is accepted

Sort by
0
Alexander Popov
Telerik team
answered on 23 May 2014, 02:49 PM
Hello Ezequiel,

I already answered to this query in the support ticket you opened. Please keep in mind that it is highly recommended that you keep related questions in one support thread or a forum post, so that we can easily keep track of your support history and provide better answers in shorter time.

Regards,
Alexander Popov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
DropDownList
Asked by
Ezequiel
Top achievements
Rank 2
Answers by
Alexander Popov
Telerik team
Share this question
or