/// <summary> /// Sets the route to which the item should navigate. /// </summary> /// <param name="routeName">Name of the route.</param> /// <param name="routeValues">The route values.</param> /// <example> /// <code lang="CS"> /// <%= Html.Kendo().Menu() /// .Name("Menu") /// .Items(items => items.Add().Text("First Item").Route("Default", new RouteValueDictionary{{"id", 1}})) /// %> /// </code> /// </example> public TBuilder Route(string routeName, RouteValueDictionary routeValues) { item.Route(routeName, routeValues); SetTextIfEmpty(routeName); return(this as TBuilder); }