NavigatableExtensions

Methods

Action(Kendo.Mvc.INavigatable,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the action, controller name and route values of INavigatable object.

Parameters

The INavigatable object.

routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

The route values of the Action method.

Action(Kendo.Mvc.INavigatable,System.String,System.String,System.Object)

Sets the action and controller name, along with Route values of INavigatable object.

Parameters

The INavigatable object.

actionName - System.String

Action name.

controllerName - System.String

Controller name.

routeValues - System.Object

Route values as an object

Action(Kendo.Mvc.INavigatable,System.String,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the action, controller name and route values of INavigatable object.

Parameters

The INavigatable object.

actionName - System.String

Action name.

controllerName - System.String

Controller name.

routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

Route values as

Action(Kendo.Mvc.INavigatable,System.Linq.Expressions.Expression)

Sets the action and route values of INavigatable object.

Parameters

item - INavigatable

The INavigatable object.

controllerAction - System.Linq.Expressions.Expression<Action>

The controller action.

Url(Kendo.Mvc.INavigatable,System.String)

Sets the url property of INavigatable object.

Parameters

The INavigatable object.

value - System.String

The Url.

Route(Kendo.Mvc.INavigatable,System.String,System.Object)

Sets the route name and route values of INavigatable object.

Parameters

The INavigatable object.

routeName - System.String

Route name.

routeValues - System.Object

Route values as an object.

Route(Kendo.Mvc.INavigatable,System.String,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Sets the route name and route values of INavigatable object.

Parameters

The INavigatable object.

routeName - System.String

Route name.

routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

Route values as .

GenerateUrl(Kendo.Mvc.INavigatable,Microsoft.AspNetCore.Mvc.Rendering.ViewContext,Kendo.Mvc.IUrlGenerator)

Generating url depending on the ViewContext and the IUrlGenerator generator.

Parameters

The INavigatable object.

viewContext - Microsoft.AspNetCore.Mvc.Rendering.ViewContext

The object

urlGenerator - IUrlGenerator

The IUrlGenerator generator.

IsCurrent(Kendo.Mvc.INavigatable,Microsoft.AspNetCore.Mvc.Rendering.ViewContext,Kendo.Mvc.IUrlGenerator)

Determines whether the specified navigatable matches the current request URL.

Parameters

The INavigatable object.

viewContext - Microsoft.AspNetCore.Mvc.Rendering.ViewContext

The object.

urlGenerator - IUrlGenerator

The IUrlGenerator generator.

GetUrlHelper(Microsoft.AspNetCore.Mvc.ActionContext)

Gets an IUrlHelper instance from the action context.

Parameters

context - Microsoft.AspNetCore.Mvc.ActionContext

The action context.

RETURNS

An IUrlHelper instance.

GenerateUrl(Kendo.Mvc.INavigatable,Microsoft.AspNetCore.Mvc.Rendering.ViewContext,Kendo.Mvc.IUrlGenerator,Microsoft.AspNetCore.Routing.RouteValueDictionary)

Generating url depending on the ViewContext and the IUrlGenerator generator.

Parameters

The INavigatable object.

viewContext - Microsoft.AspNetCore.Mvc.Rendering.ViewContext

The object

urlGenerator - IUrlGenerator

The IUrlGenerator generator.

routeValues - Microsoft.AspNetCore.Routing.RouteValueDictionary

The route values.

HasValue(Kendo.Mvc.INavigatable)

Determines whether this instance has value.

Parameters

RETURNS

true if either ActionName and ControllerName, RouteName or Url are set; false otherwise

IsAccessible(Kendo.Mvc.INavigatable,Microsoft.AspNetCore.Mvc.Rendering.ViewContext,Kendo.Mvc.Infrastructure.INavigationItemAuthorization)

Determines whether the navigatable item is accessible to the current user based on authorization rules.

Parameters

item - INavigatable

The navigatable item.

viewContext - Microsoft.AspNetCore.Mvc.Rendering.ViewContext

The view context.

authorization - Kendo.Mvc.Infrastructure.INavigationItemAuthorization

The navigation item authorization service.

RETURNS

True if the item is accessible; otherwise, false.

IsAccessible(System.Collections.Generic.IEnumerable,Microsoft.AspNetCore.Mvc.Rendering.ViewContext,Kendo.Mvc.Infrastructure.INavigationItemAuthorization)

Determines whether all navigatable items in the collection are accessible to the current user based on authorization rules.

Parameters

items - System.Collections.Generic.IEnumerable<T>

The collection of navigatable items.

viewContext - Microsoft.AspNetCore.Mvc.Rendering.ViewContext

The view context.

authorization - Kendo.Mvc.Infrastructure.INavigationItemAuthorization

The navigation item authorization service.

RETURNS

True if all items are accessible; otherwise, false.