Telerik.Web.Mvc.UI.CalendarSelectionSettingsBuilder.Action C# (CSharp) Method

Action() public method

Sets the action to which the date should navigate
public Action ( string action, object values ) : CalendarSelectionSettingsBuilder
action string Name of the action.
values object The route values.
return CalendarSelectionSettingsBuilder
        public CalendarSelectionSettingsBuilder Action(string action, object values)
        {
            Guard.IsNotNullOrEmpty(action, "action");
            Guard.IsNotNull(values, "values");

            settings.ActionName = action;
            settings.ControllerName = viewContext.Controller.GetType().Name.Replace("Controller", "");
            settings.RouteValues = new RouteValueDictionary(values);

            return this;
        }

Same methods

CalendarSelectionSettingsBuilder::Action ( string action, string controller, object values ) : CalendarSelectionSettingsBuilder