Call Select-Method after onChange of Dropdownlist

2 posts, 0 answers
  1. Alexander
    Alexander avatar
    1 posts
    Member since:
    May 2015

    Posted 13 Jul 2015 Link to this post

    Hi everybody,


    I've the following problem: I tried to add a dropdownlist to a Html.Telerik.Grid in the Toolbar. I did it like this:

    01..ToolBar(toolbar =>
    02.                {
    03.                    toolbar.Template(@<text>
    04.                        <div class="toolbar">                       
    05.                            @Html.DropDownList("SelectedShopCategoryId",
    06.                            Model.AvaiablePriceLists,new 
    07.                            {@onchange="onChange(this.value);"})
    08.                        </div>
    09.                    </text>);
    10.                }))

    Now in the onChange-Event of the DropDownList I want to fire the Select-Command of the grid from this piece of code:

    1..DataBinding(dataBinding =>
    2.        dataBinding.Ajax().Select("ProductList", "Event", new RouteValueDictionary {
    3.       { "selectedIds", Model.SelectedProductIds } }))

    How can I achive this behaviour or how can I call the action in the controller with Javascript/Ajax?



  2. Georgi Krustev
    Georgi Krustev avatar
    3747 posts

    Posted 15 Jul 2015 Link to this post

    Hello Alexander,

    I believe that you are referring to Telerik Extensions for ASP.NET MVC product, support for which was discontinued at the mid of 2013. That being said, in order to assist you further with the issue you will need to migrate to Telerik UI for ASP.NET MVC (based on Kendo UI).

    If you still need to find a solution for the aforementioned requirement then I would suggest you post your question in public forums like StackOverflow.

    Georgi Krustev
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top