ReadOnlyCustomDataSourceModelDescriptorFactory
Methods
Id(System.String)
Specify the member used to identify an unique Model instance.
Parameters
fieldName - System.String
The member name.
Example
@(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
@(Html.Kendo().DropDownList()
.Name("ddl")
.DataSource(ds=> ds
.Custom())
.Schema(s=>s.Model(m=>m.Field("Field", typeof(string))))
)