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

Kendo UI TreeListModelDescriptor class

Definition

Constructors

Initializes a new instance of the TreeListModelDescriptor class.

C#
public TreeListModelDescriptor(Type modelType, IModelMetadataProvider modelMetadataProvider)
Parameters:modelTypeType

The type of the model.

modelMetadataProviderIModelMetadataProvider

The meta data provider of the model.

Properties

Specifies the whether the records should be initially expanded

C#
public object Expanded { get; set; }

Gets or sets the parent id used by the TreeList.

C#
public string ParentId { get; set; }

Methods

Serializes the current instance to a Dictionary.

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

The IDictionary<TKey, TValue> object in which settings will be serialized.

Overrides: ModelDescriptor.Serialize(IDictionary<string, object>)