New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

This is a collection of item indexes - each item index is unique within the collection

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class GridIndexCollection : ICollection, IEnumerable, IXmlSerializable

Inheritance: objectGridIndexCollection

Implements: ICollectionIEnumerableIXmlSerializable

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Properties

Gets the number of elements contained in the collection.

C#
public int Count { get; }
Property Value:

The number of elements contained in the collection.

Implements: ICollection.Count

Gets a boolean value indicationg whether the collection is read only and can me modified.

C#
public bool IsReadOnly { get; }
Property Value:

A boolean value indicationg whether the collection is read only and can me modified.

Gets a value indicating whether access to the collection is synchronized (thread safe).

C#
public bool IsSynchronized { get; }
Property Value:

true if access to the collection is synchronized (thread safe); otherwise, false.

Implements: ICollection.IsSynchronized

Gets an object that can be used to synchronize access to the collection.

C#
public object SyncRoot { get; }
Property Value:

An object that can be used to synchronize access to the collection.

Implements: ICollection.SyncRoot

C#
public string this[int indexOfArray] { get; }
Parameters:indexOfArrayint

Methods

Constructs and add item hierarchical index to the collection of indexes.

C#
public void Add(params int[] indexes)
Parameters:indexesint[]

The hierarchical-index is based on sequential numbers of indxes of items and detail tables. For example index Add(1) will construct the hierarchicalindex for Item 1 in MasterTableView. Add(1, 0, 2) references to the item with index 2 that belongs to a child table 0 of the item 1 in MastertableView.

This method is for internal use only!

C#
public void Add(string hierarchicalIndex)
Parameters:hierarchicalIndexstring

Gets a collection of child indexes based on a provided parent index and detail table index.

C#
public GridIndexCollection ChildIndexes(string parentIndex, int detailTableIndex)
Parameters:parentIndexstring

The parent index.

detailTableIndexint

The index of the DetailTable.

Returns:

GridIndexCollection

The child indexes collection.

Gets a collection of child indexes based on a provided parent index.

C#
public GridIndexCollection ChildIndexes(string parentIndex)
Parameters:parentIndexstring

The parent index.

Returns:

GridIndexCollection

The child indexes collection.

Clears all items from the collection.

C#
public void Clear()

Determines whether the collection contains the specified item by providing its hierarchical index.

C#
public bool Contains(string hierarchicalIndex)
Parameters:hierarchicalIndexstring

The hierarchical index of the item.

Returns:

bool

Returns whethever the item is present in the collection

Determines whether the collection contains the child index by providing a parent index.

C#
public bool ContainsChildIndex(string parentIndex)
Parameters:parentIndexstring

The parent index.

Returns:

bool

Returns a boolean property whether the index exists.

Copies the elements of the collection to an Array, starting at a particular Array index.

C#
public void CopyTo(Array array, int index)
Parameters:arrayArray

The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing.

indexint

The zero-based index in array at which copying begins.

Implements: ICollection.CopyTo(Array, int)

Returns an enumerator that iterates through a collection.

C#
public IEnumerator GetEnumerator()
Returns:

IEnumerator

An IEnumerator object that can be used to iterate through the collection.

Implements: IEnumerable.GetEnumerator()

C#
public XmlSchema GetSchema()
Returns:

XmlSchema

Implements: IXmlSerializable.GetSchema()

C#
public void ReadXml(XmlReader reader)
Parameters:readerXmlReader

Implements: IXmlSerializable.ReadXml(XmlReader)

Removes indexes from the collection of child indexes based on a provided parent index and detail table index.

C#
public void RemoveChildIndexes(string parentIndex, int detailTableIndex)
Parameters:parentIndexstring

The parent index.

detailTableIndexint

The index of the DetailTable.

C#
public void WriteXml(XmlWriter writer)
Parameters:writerXmlWriter

Implements: IXmlSerializable.WriteXml(XmlWriter)