Glossary Item Box

Controls: NavBarNesting controls

Client-side API: Client side API

See Also AspLib component library Send comments on this topic.

NavBar - server side API

NavBar control has some server-side API functions to add or remove a item or group.

 

Adding item or group

 

Function Description
AddGroup(string label) Creates and adds the group to Groups collection. Returns added group.
AddGroup(string label, string image)
AddItem(NavBarGroup group, string label) Creates and adds the item to the group. Returns added item or null.
AddItem(NavBarGroup group, string label, string image)
AddItem(NavBarGroup group, string label, string image, string href)
AddItem(NavBarGroup group, string label, string image, string href, string hrefTarget)
AddItem(string groupLabel, string label)
AddItem(string groupLabel, string label, string image)
AddItem(string groupLabel, string label, string image, string href)
AddItem(string groupLabel, string label, string image, string href, string hrefTarget)


Removing item or group

 

Function Description
RemoveGroup(string label) Removes the group with label from Groups collection.
RemoveGroup(NavBarGroup group) Removes the group from Groups collection.
RemoveItem(NavBarGroup group, string label) Finds item with label in the group and deletes it.
RemoveItem(string groupLabel, string label) Finds item with label in the group with label groupLabel and deletes it.


Searching items or groups 

 

Function Description
FindGroupByLabel(string label) Finds the group by group label text. Returns founded group or null.
FindItemByLabel(string label) Finds the first matching item by item label text. Returns founded item or null.
FindItemByLabel(string label, NavBarGroup group) Finds the first matching item by item label text in given group. Returns founded item or null.



Controls: NavBarNesting controls

Client-side API: Client side API

 

 


© 2002-2007 Astron Digital. All Rights Reserved.