ASPxNavigationBar – JavaScript when NavBarItem clicked

following code example explains how to execute a java script function when any an items in a ASPXNavbar is clicked.

<dx:ASPxNavBar ID="nbMenuSPISLeedOwners" runat="server" Width="100%" AllowSelectItem="True"
DataSourceID="SiteMapDataSource1" OnItemDataBound="ASPxNavBar1_ItemDataBound">
<ItemStyle HorizontalAlign="Left" />
<GroupHeaderStyle HorizontalAlign="Center">
<ClientSideEvents ItemClick="OnItemClick" />

<dx:ASPxLoadingPanel ID="loadingPanel" runat="server" Text="Redirecting&amp;hellip; Please wait!"
ClientInstanceName="loadingPanel" BackColor="Pink" >

The Javascript should be as follows:

function OnItemClick(s, e) {


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: