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

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))))
                    )

In this article
Not finding the help you need?