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.
Unfortunately, activation email could not send to your email. Please try again.

Capturing Groupbar Parent Item Select

Thread ID:

Created:

Updated:

Platform:

Replies:

90104 Sep 16,2009 12:43 PM Sep 22,2009 02:52 AM ASP.NET Web Forms (Classic) 1
loading
Tags: Grouping
Barry Shulam
Asked On September 16, 2009 12:43 PM

I can capture items that are clicked using the Groupbar1_ItemSelect method.

However I cant seem to capture when A user clicks on a header item on the groupbar. I want to capture this event and reload items in a second splitpane.

Balavasanth [Syncfusion]
Replied On September 22, 2009 02:52 AM

Hi Barry,

Thanks for your interests in Syncfusion products.

You can make use of the GroupBarItemSelected event which occurs when a GroupBar Item of the GroupBar control is selected.

Accessing the GroupBar.SelectedItem property from within the GroupBarItemSelected event handler will allow you to determine the item that was clicked. Based on this appropriate command, handling routines can be invoked.

[C# Code]

// Provide a handler for the GroupBar.GroupBarItemSelected event.

this.groupBar1.GroupBarItemSelected += new System.EventHandler(this.groupBar1_GroupBarItemSelected);


//The GroupBar.SelectedItem property fetches the index of the selected item, while the item is obtained by referencing the selected index within the GroupBar.GroupBarItems collection.

private void groupBar1_GroupBarItemSelected(object sender, System.EventArgs e)

{

Console.WriteLine(String.Concat("Selected Item = ", this.groupBar1.GroupBarItems[this.groupBar1.SelectedItem].Text));

}

Based on the selected Groupbar item you can perform the action.

Please let us know if you have any queries.

Best,
Bala.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;