This question is locked. New answers and comments are not allowed.
We have a Telerik MVC 3 Razor Web App.
In on eof the views we have a Grid and would like to add a Combobox in de Toolbar.
I've looked at the Toolbar template Demo but am not able to get this working.
My code looks like below. When i run the app i get the following error : CS1502: The best overloaded method match for 'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory<Web.Models.OrderViewModel>.Template(System.Func<object,object>)' has some invalid arguments
I probably have the syntax for the toolbar wrong but i'm not sure.
Can anybody see what's wrong with the code?
In on eof the views we have a Grid and would like to add a Combobox in de Toolbar.
I've looked at the Toolbar template Demo but am not able to get this working.
My code looks like below. When i run the app i get the following error : CS1502: The best overloaded method match for 'Telerik.Web.Mvc.UI.Fluent.GridToolBarCommandFactory<Web.Models.OrderViewModel>.Template(System.Func<object,object>)' has some invalid arguments
I probably have the syntax for the toolbar wrong but i'm not sure.
Can anybody see what's wrong with the code?
@(Html.Telerik().Grid<Web.Models.OrderViewModel>() .Name("OrdersGrid") .ToolBar(toolBar => toolBar.Template( @Html.Telerik().ComboBox() .Name("StateComboBox") .Items(item => { item.Add().Text("Alle orders").Value("1"); item.Add().Text("Afgekeurde orders").Value("2"); item.Add().Text("Te verwerken orders").Value("3"); }) .HtmlAttributes(new { style = "width: 300px" }) .ClientEvents(events => events.OnChange("OnStateComboBoxChange")) )) .Columns(column =>