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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

remembering name or id of last item clicked of barmanager

Thread ID:

Created:

Updated:

Platform:

Replies:

72489 Mar 24,2008 05:46 AM UTC Mar 27,2008 11:15 AM UTC WinForms 1
loading
Tags: Tools
ranjumalhotra
Asked On March 24, 2008 05:46 AM UTC

Hi,

can we get the name of last baritem clicked ie before the currently clicked bar item.If yes, How?????


Thanks
Ranju Malhotra


Administrator [Syncfusion]
Replied On March 27, 2008 11:15 AM UTC

Hi Ranju,

Thank you for your interest in Syncfusion Products.

Currently we dont have any specific property or method that traces the previously clicked bar item. As a work around, we need to save the item when it is clicked and can retain it when next item is being clicked. Please find the code snippet that illustrates this:

private void BarItem_Click(object sender, System.EventArgs e)
{
BarItem barItem = null ;
if(sender is BarItem)
{
BarItem = sender as BarItem;
this.MyTraceLine(barItem.Text + " Clicked.");
}
if (Bar_before != null)
{
this.MyTraceLine(Bar_before.Text + " is previously clicked baritem");
}
Bar_before = barItem;
}


Please find the simple sample in the following link:

http://websamples.syncfusion.com/samples/Tools.Windows/F72489/main.htm

Please let me know if any concerns.

Regards,
Fathima



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon

;