New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
Accessing Items
Updated over 6 months ago
RadPanelBar has a number of useful methods for accessing the items in the panel. The following table lists these methods:
| Method | Parameters | Return Value | Description |
|---|---|---|---|
| GetAllItems | none | IList<RadPanelBarItem> | Returns a list of all items in the panel, flattening out the panel hierarchy. |
| FindItemByText | string | RadPanelBarItem | Returns the first item in the panel whose Text property matches the parameter. |
| FindItemByUrl | string | RadPanelBarItem | Returns the first item in the panel whose NavigateUrl property matches the parameter. |
| FindItemByValue | string | RadPanelBarItem | Returns the first item in the panel whose Value property matches the parameter. |