Suoranta.WebApp.Types Namespace
Suoranta.WebApp - Developer API

WidgetExtensions..::..BindToDTO<(Of <(<'TList, TListBuilder>)>)> Method (TListBuilder, Object)

Binds widget to a static DTO data source (list of values).

Namespace:  Suoranta.WebApp.Kendo.RazorHelpers
Assembly:  Suoranta.WebApp (in Suoranta.WebApp.dll)

Syntax


public static TListBuilder BindToDTO<TList, TListBuilder>(
	this TListBuilder builder,
	Object dto
)
where TList : ListBase
where TListBuilder : ListBuilderBase<TList, TListBuilder>

Type Parameters

TList
The type of the list.
TListBuilder
The type of the list builder.

Parameters

builder
Type: TListBuilder
dto
Type: Object

Return Value

Remarks


Sets [KF.ListBuilderBase{TDropDown, TDropDownBuilder}.ValuePrimitive(bool)], meaning that value of the HTML Select element is the property set by DataValueField method (e.g. DataValueField(String)) of the builder.

See Also


[BindDynamically{TList, TListBuilder}(TListBuilder, IEnumerable{object}, IHtmlHelper)]