| Name |
Description |
AddMenuItem |
Adds a new MenuItem to the menu.
AddMenuItem(id, innerHtml, icon, url, urlTarget, onClientClick)
- id - Component ID.
- innerHtml - Text or HTML to display inside the MenuItem. Optional
- icon - Icon to display for the MenuItem. Optional
- url - Url to open when item is clicked. Optional
- urlTarget - Frame where the url is to be opened. Optional
- onClientClick - Javascript code to execute when item is clicked. Optional
oem.AddMenuItem("menuItem1", "Our Products", null, null, null, null); |
AddMenuItemAt |
Adds a new MenuItem to the menu at the specified index.
AddMenuItemAt(index, id, innerHtml, icon, url, urlTarget, onClientClick)
- index - The index where the item is to be added to.
- id - Component ID.
- innerHtml - Text or HTML to display inside the MenuItem. Optional
- icon - Icon to display for the MenuItem. Optional
- url - Url to open when item is clicked. Optional
- urlTarget - Frame where the url is to be opened. Optional
- onClientClick - Javascript code to execute when item is clicked. Optional
oem.AddMenuItemAt(1, "menuItem1", "Our Products", null, null, null, null); |
AddSeparator |
Adds a new MenuSeparator to the menu.
AddSeparator(id, innerHtml)
- id - Component ID.
- innerHtml - Text or HTML to display inside the item. Optional
oem.AddSeparator("menuSeparator1", "<hr noshade size= 1>"); |
AddSeparatorAt |
Adds a new MenuSeparator to the menu at the specified index.
AddSeparatorAt(index, id, innerHtml)
- index - The index where the item is to be added to.
- id - Component ID.
- innerHtml - Text or HTML to display inside the item. Optional
oem.AddSeparatorAt(1, "menuSeparator1", "<hr noshade size= 1>"); |
AddItem |
Adds a new item to the menu.
AddItem(item)
- item - Any control derived from ItemBase to add to the menu.
oem.AddItem(new MenuItem("menuItem1", "Our Products")); |
AddItemAt |
Adds a new item to the menu at the specified index.
AddItemAt(index, item)
- index - The index where the MenuComponent derivate is to be added to.
- item - Any control derived from ItemBase to add to the menu.
oem.AddItemAt(1, new MenuItem("menuItem1", "Our Products")); |
RemoveItem |
Removes existing item from the menu.
RemoveItem(item)
- item - An existing control derived from ItemBase to remove from the menu.
oem.RemoveItem(menuItem1); |
RemoveItemAt |
Removes existing item from the menu from the specified index.
RemoveItemAt(index)
- index - The index from where the MenuComponent derivate will be removed.
oem.RemoveItemAt(1); |
RemoveItemByID |
Removes existing item with the specified id from the menu.
RemoveItemByID(id)
- id - The menu item id that will be removed.
oem.RemoveItemByID("menuItem1"); |