Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public static class NavigatableExtensions
Inheritance: objectNavigatableExtensions
Inherited Members
Methods
Sets the action, controller name and route values of INavigatable object.
public static void Action(this INavigatable navigatable, RouteValueDictionary routeValues)
The INavigatable object.
routeValuesRouteValueDictionaryThe route values of the Action method.
Sets the action and controller name, along with Route values of INavigatable object.
public static void Action(this INavigatable navigatable, string actionName, string controllerName, object routeValues)
The INavigatable object.
actionNamestringAction name.
controllerNamestringController name.
routeValuesobjectRoute values as an object
Sets the action, controller name and route values of INavigatable object.
public static void Action(this INavigatable navigatable, string actionName, string controllerName, RouteValueDictionary routeValues)
The INavigatable object.
actionNamestringAction name.
controllerNamestringController name.
routeValuesRouteValueDictionaryRoute values as RouteValueDictionary
Sets the action and route values of INavigatable object.
public static void Action<TController>(this INavigatable item, Expression<Action<TController>> controllerAction) where TController : Controller
The INavigatable object.
controllerActionExpression<Action<TController>>The controller action.
Generating url depending on the ViewContext and the IUrlGenerator generator.
public static string GenerateUrl(this INavigatable navigatable, ViewContext viewContext, IUrlGenerator urlGenerator, RouteValueDictionary routeValues)
The INavigatable object.
viewContextViewContextThe ViewContext object
urlGeneratorIUrlGeneratorThe IUrlGenerator generator.
routeValuesRouteValueDictionaryRoute values as RouteValueDictionary.
Returns:Generating url depending on the ViewContext and the IUrlGenerator generator.
public static string GenerateUrl(this INavigatable navigatable, ViewContext viewContext, IUrlGenerator urlGenerator)
The INavigatable object.
viewContextViewContextThe ViewContext object
urlGeneratorIUrlGeneratorThe IUrlGenerator generator.
Returns:Determines whether this instance has value.
public static bool HasValue(this INavigatable navigatable)
true if either ActionName and ControllerName, RouteName or Url are set; false otherwise
Verify whether the INavigatable object is accessible.
public static bool IsAccessible(this INavigatable item, INavigationItemAuthorization authorization, ViewContext viewContext)
The INavigatable object.
authorizationINavigationItemAuthorizationThe INavigationItemAuthorization object.
viewContextViewContextThe ViewContext object
Returns:Verifies whether collection of INavigatable objects is accessible.
public static bool IsAccessible<T>(this IEnumerable<T> items, INavigationItemAuthorization authorization, ViewContext viewContext)
The INavigatable object.
authorizationINavigationItemAuthorizationThe INavigationItemAuthorization object.
viewContextViewContextThe ViewContext object
Returns:Determines whether the specified navigatable matches the current request URL.
public static bool IsCurrent(this INavigatable navigatable, ViewContext viewContext, IUrlGenerator urlGenerator)
The INavigatable object.
viewContextViewContextThe ViewContext object.
urlGeneratorIUrlGeneratorThe IUrlGenerator generator.
Returns:Sets the route name and route values of INavigatable object.
public static void Route(this INavigatable navigatable, string routeName, object routeValues)
The INavigatable object.
routeNamestringRoute name.
routeValuesobjectRoute values as an object.
Sets the route name and route values of INavigatable object.
public static void Route(this INavigatable navigatable, string routeName, RouteValueDictionary routeValues)
The INavigatable object.
routeNamestringRoute name.
routeValuesRouteValueDictionaryRoute values as RouteValueDictionary.
Sets the url property of INavigatable object.
public static void Url(this INavigatable navigatable, string value)
The INavigatable object.
valuestringThe Url.