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