New to Telerik UI for ASP.NET Core? Download free 30-day trial

DataSourceSchedulerModelDescriptorFactory

Methods

RecurrenceId(System.Linq.Expressions.Expression)

Specify the member used for recurrenceId.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


                @(Html.Kendo().Scheduler<Screening>()
                    .Name("scheduler")
                    .Date(new DateTime(2013, 6, 13))
                    .WorkDayEnd(16,0,0)
                    .DataSource(ds=> {
                        ds.Model(m =>
                        {
                            m.RecurrenceId(r=>r.RecurrenceId);
                        });
                    })
                )

RecurrenceId(System.String)

Specify the member used for recurrenceId.

Parameters

fieldName - System.String

The member name.

Example


                @(Html.Kendo().Scheduler<Screening>()
                    .Name("scheduler")
                    .Date(new DateTime(2013, 6, 13))
                    .WorkDayEnd(16,0,0)
                    .DataSource(ds=> {
                        ds.Model(m =>
                        {
                            m.RecurrenceId("RecurrenceId");
                        });
                    })
                )

Id(System.String)

Specify the member used to identify an unique Model instance.

Parameters

fieldName - System.String

The member name.

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Id("OrderID"))
            )

Id(System.Linq.Expressions.Expression)

Specify the member used to identify an unique Model instance.

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the member

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Id(o => o.OrderID))
            )

Field(System.Linq.Expressions.Expression)

Describes a Model field

Parameters

expression - System.Linq.Expressions.Expression<Func>

Member access expression which describes the field

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Field(f => f.ShipName).Editable(false))
            )

Field(System.String,System.Type)

Describes a Model field

Parameters

memberName - System.String

Field name

memberType - System.Type

Field type

Example


            .DataSource(dataSource => dataSource
                    .Ajax()
                    .Model(m => m.Field("ShipName", typeof(string)))
            )

Field(System.String)

Describes a Model field

Parameters

memberName - System.String

Member name

In this article
Not finding the help you need?