[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.BaseCollectionViewServiceBuilder-3.NewItemIndex

NewItemIndex Method

NewItemIndex(int)

Configurates NewItemIndex. Sets the zero-based index that FlexGrid's new row template uses when inserting new items.

Declaration
public virtual TBuilder NewItemIndex(int value)
Public Overridable Function NewItemIndex(value As Integer) As TBuilder
Parameters
Type Name Description
int value

The value.

Returns
Type Description
TBuilder

Current builder.

Remarks

The index is honored only when sorting, filtering and grouping are inactive; any of those view transforms overrides the insertion position and the item is appended to the end of the source collection. When paging is enabled, values in the range 0..PageSize - 1 map to positions within the current page, while values less than zero or greater than or equal to PageSize keep the original add-new behavior. When paging is disabled, non-negative values are treated as positions within the full source collection. The default value for this property is -1.