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

GridBuilder<(Of <(<'TModel>)>)>..::..SetDataSource<(Of <(<'TProp>)>)> Method

Sets up CRUD operations in accordance to class the class specification This combines ParameterRouting(Action<(Of <<'(RouteValueDictionary>)>>)) and ConfigureDataSource(DataSourceBuilder<(Of <<'(TModel>)>>), Selector)

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

Syntax


public AdvancedBuilders<(Of <(<'TPageModel, TController>)>)>..::..GridBuilder<TModel> SetDataSource<TProp>(
	Expression<Func<TModel, TProp>> idProp,
	Action<RouteValueDictionary> routeValueConfigurer
)

Type Parameters

TProp

Parameters

idProp
Type: Expression<(Of <(<'Func<(Of <(<'TModel, TProp>)>)>>)>)>
Selector for identifier of row model
routeValueConfigurer
Type: Action<(Of <(<'RouteValueDictionary>)>)>
Use empty lambda action if not needed

Return Value