New to Telerik UI for ASP.NET MVC? Download free 30-day trial

ServerCrudOperationBuilder

Methods

Route(System.Web.Routing.RouteValueDictionary)

Sets the route values for the operation.

Parameters

routeValues - System.Web.Routing.RouteValueDictionary

Route values

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Route(new RouteValueDictionary() ))
                        )
                    )

Action(System.String,System.String,System.Object)

Sets the action, contoller and route values for the operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller name

routeValues - System.Object

Route values

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Action("Action","Controller", new { }))
                        )
                    )

Action(System.String,System.String,System.Web.Routing.RouteValueDictionary)

Sets the action, contoller and route values for the operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller name

routeValues - System.Web.Routing.RouteValueDictionary

Route values

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Action("Action","Controller", new RouteValueDictionary()))
                        )
                    )

Action(System.String,System.String)

Sets the action and contoller values for the operation.

Parameters

actionName - System.String

Action name

controllerName - System.String

Controller name

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Action("Action","Controller"))
                        )
                    )

Route(System.String,System.Web.Routing.RouteValueDictionary)

Sets the route name and values for the operation.

Parameters

routeName - System.String

Route name

routeValues - System.Web.Routing.RouteValueDictionary

Route values

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Route("RouteName", new RouteValueDictionary()))
                        )
                    )

Route(System.String,System.Object)

Sets the route name and values for the operation.

Parameters

routeName - System.String

Route name

routeValues - System.Object

Route values

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Route("RouteName", new { }))
                        )
                    )

Route(System.String)

Sets the route name for the operation.

Parameters

routeName - System.String

Example


                   @(Html.Kendo().Grid<OrderViewModel>()
                        .Columns(c=> {
                            c.Bound(b => b.OrderID);
                            c.Bound(b => b.OrderDate);
                        })
                        .Name("grid")
                        .DataSource(ds=> ds
                            .Ajax()
                            .Read(r=>r.Route("RouteName"))
                        )
                    )

Action(System.Linq.Expressions.Expression)

Parameters

controllerAction - System.Linq.Expressions.Expression<Action>
In this article
Not finding the help you need?