[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.DataMapBuilder

DataMapBuilder Class

Defines a builder to configurate DataMap.

Inheritance
HideObjectMembers
DataMapBuilder
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public class DataMapBuilder : BaseBuilder<DataMap, DataMapBuilder>

Constructors

Name Description
DataMapBuilder(DataMap)

Creates one DataMapBuilder instance to configurate obj.

Methods

Name Description
Bind(Action<CollectionViewServiceBuilder<object>>)

Sets ItemsSource by builder.

Bind(IEnumerable<object>)

Bind to a collection.

Bind(string)

Sets the read action url.

BindODataSource(Action<ODataCollectionViewServiceBuilder<object>>)

Configurates ItemsSource. Sets ItemsSource settings.

BindODataVirtualSource(Action<ODataVirtualCollectionViewServiceBuilder<object>>)

Configurates ItemsSource. Sets ItemsSource settings.

DisplayMemberPath(string)

Configurates DisplayMemberPath. Sets the name of the property to use as the visual representation of the item.

IsEditable(bool)

Configurates IsEditable. Sets a value that indicates whether users should be allowed to enter values.

OnClientMapChanged(string)

Configurates the OnClientMapChanged client event. Occurs when the map data changes.

SelectedValuePath(string)

Configurates SelectedValuePath. Sets the name of the property to use as a key for the item (data value).

SortByDisplayValues(bool)

Configurates SortByDisplayValues. Sets a value that determines whether to use mapped (display) or raw values when sorting the data. The default value is false.