Ajax DropDown with javascript parameter

2 posts, 0 answers
  1. Ezequiel
    Ezequiel avatar
    36 posts
    Member since:
    Oct 2011

    Posted 21 May 2014 Link to this post

    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
  2. Alexander Popov
    Admin
    Alexander Popov avatar
    1416 posts

    Posted 23 May 2014 Link to this post

    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.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top