/// <summary> /// Sets the resources grouping configuration of the view. /// </summary> /// <param name="configuration">The lambda which configures the view grouping</param> /// <summary> public TViewBuilder Groups(Action <SchedulerGroupBuilder> configuration) { var factory = new SchedulerGroupBuilder(view.Group); configuration(factory); return((TViewBuilder)this); }
/// <summary> /// Sets the resources grouping configuration of the scheduler. /// </summary> /// <param name="configuration">The lambda which configures the scheduler grouping</param> /// <example> /// <code lang="Razor"> /// @(Html.Kendo().Scheduler<Task>() /// .Name("Scheduler") /// .Resources(resource => /// { /// resource.Add(m => m.TaskID) /// .Title("Color") /// .Multiple(true) /// .DataTextField("Text") /// .DataValueField("Value") /// .DataSource(d => d.Read("Attendies", "Scheduler")); /// }) /// .DataSource(dataSource => dataSource /// .Model(m => m.Id(f => f.TaskID)) /// )) /// </code> /// </example> public SchedulerBuilder <TModel> Group(Action <SchedulerGroupBuilder> configuration) { var factory = new SchedulerGroupBuilder(Component.Group); configuration(factory); return(this); }