open | none | none | Expands the item and reveals its children, if any. |
close | none | none | Collapses the item, if it is expanded. |
click | none | none |
Performs a click on the menu item. It can cause postback, but it will not redirect to another page. See this example.
|
get_visible | none | boolean |
Returns true if the items is visible or false if the item is invisible.
|
set_visible | boolean | none | Sets the visibility of the item |
show | none | none |
Shows the item if it was set invisible on the client. The same as set_visible(true) |
hide | none | none |
Hides the item. The same as set_visible(false) |
set_text | string text | none | Sets the text of the item. |
get_text | none | string text | Returns the text of the item. |
set_value | string value | none | Sets the Value property of the item. |
get_value | none | string value | Returns the Value property of the item. |
get_isSeparator | none | boolean |
Returns true the item is a separator (sever-side property IsSeparator = true)
|
get_navigateUrl | none | string | Gets the URL of the Web page the menu item launches. |
set_navigateUrl | string | none |
Sets the navigateURL property of the item. This is the URL of the Web page the menu item launches.
Caution |
|---|
The navigateUrl property must be an absolute URL on the client side: e.g. "http://mydomain.com/default.aspx" not "default.aspx". |
|
set_imageUrl | (string imageUrl) | none | Sets the URL of the image. |
get_imageUrl | none | (string imageUrl) | Gets the URL of the image. |
set_hoveredImageUrl | (string imageUrl) | none | Sets the URL of the image displayed when the mouse is over the item. |
get_hoveredImageUrl | none | (string imageUrl) | Gets the URL of the image displayed when the mouse is over the item. |
get_element | none | HTML Element | Gets the root DOM element of the item (LI). |
get_linkElement | none | HTML Element | Gets the anchor DOM element of the item (A). |
get_imageElement | none | HTML Element | Gets the image DOM element of the item. If the server side ImageUrl property is not set, returns null. |
get_textElement | none | HTML Element | Gets the DOM element of the item text (SPAN). |
get_childListElement | none | HTML Element | Gets the DOM element of the list of child items (UL). |
findControl | string | object | Returns the object nested in the item's template |
get_selected | none | Boolean | Returns whether the item is selected |
set_selected | Boolean | none | Sets the selected property of the item. |
get_selectedImageUrl | none | (string imageURL) |
Gets the value of the SelectedImageUrl property
|
set_selectedImageUrl | string (imageUrl) | none | Sets the URL of the image displayed when the item is selected |