A collection of RadPanelItem objects in a RadPanelBar control.
The RadPanelItemCollection class represents a collection of RadPanelItem objects.
- Use the this[int] to programmatically retrieve a single RadPanelItem from the collection, using array notation.
- Use the Count property to determine the total number of panel items in the collection.
- Use the Add(RadPanelItem) method to add items in the collection.
- Use the Remove(RadPanelItem) method to remove items from the collection.
Definition
Namespace:Telerik.Web.UI
Assembly:Telerik.Web.UI.dll
Syntax:
public class RadPanelItemCollection : ControlItemCollection, IList, ICollection, IEnumerable, IStateManager
Inheritance: objectStateManagedCollectionControlItemCollectionRadPanelItemCollection
Implements:
Inherited Members
Constructors
Initializes a new instance of the RadPanelItemCollection class.
public RadPanelItemCollection(Control parent)
The owner of the collection.
Properties
Gets the RadPanelItem object at the specified index in the current RadPanelItemCollection.
public RadPanelItem this[int index] { get; set; }
The zero-based index of the RadPanelItem to retrieve.
Property Value:The RadPanelItem at the specified index in the current RadPanelItemCollection.
Methods
Appends the specified RadPanelItem object to the end of the current RadPanelItemCollection.
public void Add(RadPanelItem item)
The RadPanelItem to append to the end of the current RadPanelItemCollection.
Appends the specified array of RadPanelItem objects to the end of the current RadPanelItemCollection.
public void AddRange(RadPanelItem[] items)
items
The array of <xref href="Telerik.Web.UI.RadPanelItem?text=RadPanelItem" data-throw-if-not-resolved="false"></xref> o append to the end of the current
Determines whether the specified RadPanelItem object is in the current RadPanelItemCollection.
public bool Contains(RadPanelItem item)
The RadPanelItem object to find.
Returns:true if the current collection contains the specified RadPanelItem object;
otherwise, false.
Returns the first RadPanelItem that matches the conditions defined by the specified predicate. The predicate should returns a boolean value.
public RadPanelItem FindItem(Predicate<RadPanelItem> match)
The Predicate <> that defines the conditions of the element to search for.
Returns:Searches the nodes in the collection for a RadPanelItem which contains the specified attribute and attribute value.
public RadPanelItem FindItemByAttribute(string attributeName, string attributeValue)
The name of the target attribute.
attributeValuestringThe value of the target attribute
Returns:The RadPanelItem that matches the specified arguments. Null (Nothing) is returned if no node is found.
This method is not recursive.
Searches the RadPanelbar control for the first RadPanelItem with a Text property equal to the specified value.
public RadPanelItem FindItemByText(string text, bool ignoreCase)
The value to search for.
ignoreCaseboolA Boolean indicating a case-sensitive or insensitive comparison (true indicates a case-insensitive comparison).
Returns:A RadPanelItem whose Text property is equal to the specified value.
The method returns the first item matching the search criteria. If no item is matching then null (Nothing in VB.NET) is returned.
Searches all nodes for a
public RadPanelItem FindItemByText(string text)
The text to search for
Returns:A RadPanelItem whose Text property equals to the specified argument. Null (Nothing) is returned when no matching node is found.
This method is not recursive.
Searches the RadPanelbar control for the first RadPanelItem with a Value property equal to the specified value.
public RadPanelItem FindItemByValue(string value, bool ignoreCase)
The value to search for.
ignoreCaseboolA Boolean indicating a case-sensitive or insensitive comparison (true indicates a case-insensitive comparison).
Returns:A RadPanelItem whose Value property is equal to the specified value.
The method returns the first item matching the search criteria. If no item is matching then null (Nothing in VB.NET) is returned.
Searches all nodes for a
public RadPanelItem FindItemByValue(string value)
The value to search for
Returns:A RadPanelItem whose Value property equals to the specified argument. Null (Nothing) is returned when no matching node is found.
This method is not recursive.
Determines the index of the specified RadPanelItem object in the collection.
public int IndexOf(RadPanelItem item)
The RadPanelItem to locate.
Returns:The zero-based index of item within the current RadPanelItemCollection, if found; otherwise, -1.
Inserts the specified RadPanelItem object in the current RadPanelItemCollection at the specified index location.
public void Insert(int index, RadPanelItem item)
The zero-based index location at which to insert the RadPanelItem.
itemRadPanelItemThe RadPanelItem to insert.
Removes the specified RadPanelItem object from the current RadPanelItemCollection.
public void Remove(RadPanelItem item)
The RadPanelItem object to remove.
Removes the RadPanelItem object at the specified index from the current RadPanelItemCollection.