We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

GroupBarItemSelected event

Hi,

When a particular groupbar item is clicked I want to trigger an event. I tried:

private void grpBarParameters_GroupBarItemSelected(object sender, EventArgs e)
{
GroupBarItem item = sender as GroupBarItem;
if (item.Text == "Fleet")
{
//Do something
}
}

But it doesnt seem to work. Please help!

1 Reply

GS Gopalakrishnan S Syncfusion Team December 14, 2006 10:04 PM UTC

Hi Sagittarian,

Thanks for using Syncfusion products. Please use the following code for access the goupbarItem.

Here is the code snippet:

private void groupBar1_GroupBarItemSelected(object sender, EventArgs e)
{
GroupBar gbar = sender as GroupBar;
if(gbar.GroupBarItems[gbar.SelectedItem].Text =="GroupBarItem1")
MessageBox.Show("GroupBarItem1");
}

Please let me know if you have any other queries.

Regards,
S.Gopal.

Loader.
Live Chat Icon For mobile
Up arrow icon