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

Call Select-Method after onChange of Dropdownlist

1 Answer 218 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Alexander
Top achievements
Rank 1
Alexander asked on 13 Jul 2015, 02:19 PM

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?

Greetings

Alexander

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 15 Jul 2015, 11:52 AM
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.

Regards,
Georgi Krustev
Telerik
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
Tags
Grid
Asked by
Alexander
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or