RadPanelBar for ASP.NET

The RadPanelItem client object Send comments on this topic.
Telerik RadPanelBar client-side > The RadPanelItem client object

Glossary Item Box

Methods

Name Parameters Return Type Description
Disable none none

Disables the item.

Example:

  Copy Code
var panelItem = RadPanelBar1.FindItemByText("Paris");
panelItem.Disable();
Enable none none

If the item is disabled, enables the item.

Example:

  Copy Code
var panelItem = RadPanelBar1.FindItemByText("Paris");
panelItem.Enable();
Focus none none

Focuses the item.

Example:

  Copy Code
var panelItem = RadPanelBar1.FindItemByText("Paris");
panelItem.Focus();
Blur none none

Removes the focus from the item.

Example:

  Copy Code
var panelItem = RadPanelBar1.FindItemByText("Paris");
panelItem.Blur();
FocusPreviousItem none none

Moves the focus back to the previous item. 

FocusNextItem none none

Moves the focus forward to the next item.

FocusFirstChild none none

Moves the focus over to the first child of the item.

FocusLastChild none none

Moves the focus over to the last child of the item.

GetNextItem none RadPanelItem Returns the next sibling of the item. If the item is last, returns the first sibling.
GetPreviousItem none RadPanelItem Returns the previous sibling of the item. If the item is first, returns the last sibling.
GetAttribute (sting attributeName)  string Returns the value of the specified custom attribute. If there is no such attribute, null is returned.  
Select none none

Selects the specified item.

Example:

  Copy Code
var panelItem = RadPanelBar1.FindItemByText("Paris");
panelItem.Select();
SetAttribute (sting attributeName, string value)  none Sets the value of the specified custom attribute.
SetImageOverUrl (string imageUrl) none Sets the URL of the image displayed when the mouse if over the item.
SetImageUrl (string imageUrl) none Sets the URL of the image.
Expand none none

Expands the item and reveals its children, if any.

Collapse none none

Collapses the item, if expanded.

SetValue string value none Sets the value of the item.
SetText string text none Sets the text of the item.
UnSelect none none

Removes the selection of the specified item.

Example:

  Copy Code
var panelItem = RadPanelBar1.FindItemByText("Paris");
panelItem.UnSelect();

Properties

Name Type Description
ID String Gets the ClientID of the item.
DomElement HTML Element Gets the root DOM element of the item (LI).
Items Array Gets the child items of the current item.
FocusedItem RadPanelItem Gets the focused child item. Null if no child item is focused.
Expanded RadPanelItem Gets the expanded state of the item.
ExpandedItem RadPanelItem Gets the expanded child item. Null if no child item is expanded.
IsSeparator boolean If the item is separator (server-side property IsSeparator = true)
Parent RadPanelItem / RadPanelBar

Gets an instance of the parent object: either RadPanelItem, or RadPanelBar if the item is a root item.

LinkElement HTML Element Gets the anchor  DOM element of the item (A).
Level Integer Gets the level of the item. Root level items are first level.
ImageElement HTML Element Gets the image DOM element of the item. If the server side ImageUrl property is not set, will return null.
PanelBar RadPanelBar Gets an instance of the panelbar control containing the item.
Enabled Boolean Gets the enabled state of the item.
Index Integer Gets the zero based index of the item inside the parent Items collection.
GlobalIndex Integer Gets the zero based index of the panelbar item inside the RadPanelBar.AllItems collection.
Text String Gets the text of the item.
TextElement HTML Element Gets the text of DOM element of the item (SPAN).
Value String Gets the value of the item.
Focused Boolean

Determines whether the panelbar item is focused.