Ejemplo n.º 1
0
        /// <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">
        ///  &lt;%= Html.Kendo().Menu()
        ///             .Name("Menu")
        ///             .Items(items => items.Add().Text("First Item").Route("Default", new RouteValueDictionary{{"id", 1}}))
        /// %&gt;
        /// </code>
        /// </example>
        public TBuilder Route(string routeName, RouteValueDictionary routeValues)
        {
            item.Route(routeName, routeValues);

            SetTextIfEmpty(routeName);

            return(this as TBuilder);
        }