Skip to main content
Tab

NavBarGroupCollection.FindByName(String) Method

Returns a group object with the specified NavBarGroup.Name property value.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public NavBarGroup FindByName(
    string name
)

Parameters

Name Type Description
name String

A String value representing the NavBarGroup.Name property value of the required group.

Returns

Type Description
NavBarGroup

A NavBarGroup object with a specific value of the NavBarGroup.Name property.

Remarks

Use this method to obtain a group specified by a unique name assigned to its NavBarGroup.Name property.

Example

...
Protected Sub ASPxNavBar1_ItemDataBound(ByVal source As Object, ByVal e As 
  DevExpress.Web.NavBarItemEventArgs) Handles ASPxNavBar1.ItemDataBound
        Dim g2 As Object = ASPxNavBar1.Groups.FindByName("g2")
        Dim g1 As Object = ASPxNavBar1.Groups.FindByName("g1")
    End Sub

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        ASPxNavBar1.DataBind()
    End Sub
...
See Also