ReadOnlyCustomDataSourceModelDescriptorFactory

Methods

Id(System.String)

Specify the member used to identify an unique Model instance.

Parameters

fieldName - System.String

The member name.

Example

Razor
 
                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .Custom())
                            .Schema(s=>s.Model(m=>m.Id("ID")))
                    )
             

Field(System.String,System.Type)

Describes a Model field

Parameters

memberName - System.String

Field name

memberType - System.Type

Field type

Example

Razor
 
                    @(Html.Kendo().DropDownList()
                        .Name("ddl")
                        .DataSource(ds=> ds
                            .Custom())
                            .Schema(s=>s.Model(m=>m.Field("Field", typeof(string))))
                    )