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

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

Adds to the page JavaScript function Populate{widgetId} that populates widget from the list of values. Unlike with [KF.ListBuilderBase{TDropDown, TDropDownBuilder}.BindTo(System.Collections.IEnumerable)], the binding is done dynamically on KendoSyncReady event.

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

Syntax


public static TListBuilder BindDynamically<TList, TListBuilder>(
	this TListBuilder builder,
	IEnumerable<Object> source,
	IHtmlHelper htmlHelper
)
where TList : ListBase
where TListBuilder : ListBuilderBase<TList, TListBuilder>

Type Parameters

TList
List widget type
TListBuilder
The type of widget builder.

Parameters

builder
Type: TListBuilder
source
Type: IEnumerable<(Of <(<'Object>)>)>
htmlHelper
Type: Suoranta.WebApp.Interfaces..::..IHtmlHelper
IHtmlHelper

Return Value