Пример #1
0
        /// <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);
        }
Пример #2
0
        /// <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&lt;Task&gt;()
        ///    .Name(&quot;Scheduler&quot;)
        ///    .Resources(resource =&gt;
        ///    {
        ///        resource.Add(m =&gt; m.TaskID)
        ///            .Title(&quot;Color&quot;)
        ///            .Multiple(true)
        ///            .DataTextField(&quot;Text&quot;)
        ///            .DataValueField(&quot;Value&quot;)
        ///            .DataSource(d =&gt; d.Read(&quot;Attendies&quot;, &quot;Scheduler&quot;));
        ///    })
        ///    .DataSource(dataSource =&gt; dataSource
        ///        .Model(m =&gt; m.Id(f =&gt; f.TaskID))
        ///    ))
        /// </code>
        /// </example>
        public SchedulerBuilder <TModel> Group(Action <SchedulerGroupBuilder> configuration)
        {
            var factory = new SchedulerGroupBuilder(Component.Group);

            configuration(factory);

            return(this);
        }