[]
        
(Showing Draft Content)

C1.Web.Mvc.BaseCollectionViewService-1

BaseCollectionViewService<T> Class

Defines the base class for all the collectionview services.

Inheritance
Service
BaseCollectionViewService<T>
Namespace: C1.Web.Mvc
Assembly: C1.Web.Mvc.dll
Syntax
public abstract class BaseCollectionViewService<T> : Service, IHtmlString, ITemplate, IItemsSource<T>
Type Parameters
Name Description
T

Constructors

Name Description
BaseCollectionViewService(HtmlHelper)

Creates one BaseCollectionViewService<T> instance.

Properties

Name Description
CalculatedFields

Gets or sets an object where the keys represent calculated fields and the values are expressions.

GetError

Gets or sets a callback that determines whether a specific property of an item contains validation errors.

GroupDescriptions

Gets the group descriptions.

NewItemCreator

Gets or sets a function that creates new items for the collection.

OnClientCollectionChanged

Occurs when the collection changes.

OnClientCurrentChanged

Occurs after the current item changes.

OnClientCurrentChanging

Occurs before the current item changes.

OnClientPageChanged

Occurs after the page index changes.

OnClientPageChanging

Occurs before the page index changes.

PageIndex

Gets or sets the page index.

PageSize

Gets or sets the page size. 0 means to disable paging.

RefreshOnEdit

Gets or sets a value that determines whether the CollectionView should automatically refresh its results (by applying the sort, filter, and grouping operations) after items are edited.

ShowDatesAsGmt

Gets or sets a value that determines whether dates should be adjusted to look like GMT rather than local dates.

SortDescriptions

Gets the sort descriptions.

SortNulls

Gets or sets a value that determines how null values should be sorted.

UniqueId

Gets a value which represents the unique id for the control.

Methods

Name Description
RegisterStartupScript(HtmlTextWriter)

Registers the start-up script.

RenderClientService(HtmlTextWriter)

Renders the client service to the specified writer.

RenderScripts(HtmlTextWriter, bool)

Renders the scripts.

Extension Methods