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.

Cell Button Firing Twice

Thread ID:

Created:

Updated:

Platform:

Replies:

49053 Sep 10,2006 05:52 AM Oct 31,2006 10:23 PM Windows Forms 7
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On September 10, 2006 05:52 AM

Hi,

I have a cell button in a cell of my grid control. When i click the cell button, a context menu will show. I had met a problem that I need to click twice on the context menu bar then the context menu will just close. It seems the cell button has fired twice.

private void gctrXYZ_CellButtonClicked(object sender, GridCellButtonClickedEventArgs e)
{
this.gctrXYZ.ConfirmChanges();

if (e.ColIndex == 2)
{
Point ClickPoint = new Point(e.Button.Bounds.X, e.Button.Bounds.Y);

Point ScreenPoint = this.gctrXYZ.PointToScreen(ClickPoint);


Point FormPoint = this.PointToClient(ScreenPoint);

Point FinalPoint = new Point(FormPoint.X + 20, FormPoint.Y);

this.popupMenu1.Show(this, FinalPoint)
}
}


Administrator [Syncfusion]
Replied On September 11, 2006 01:54 AM

Hi,

I tried to reproduce the issue in this sample, but could not get this issue using Essential version 4.2. What version of our libraries are you using?

http://www.syncfusion.com/Support/user/uploads/GridButtonPopmenu_5350a8d9.zip

Are you doing anything different than what the sample does?

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On September 11, 2006 08:09 AM

I''m using the version 4.1.0.56.

Administrator [Syncfusion]
Replied On September 11, 2006 08:23 AM

I couldn''t open the solution that you provided. I think maybe because of my syncfusion version is older than it.

Administrator [Syncfusion]
Replied On September 12, 2006 05:44 AM

Hi,

Sorry for the inconvenience caused.

Here is a link for that sample.
http://www.syncfusion.com/Support/user/uploads/GridButtonPopmenu1_f53b2d39.zip

Best Regards,
Haneef

Administrator [Syncfusion]
Replied On September 13, 2006 03:22 AM

I still couldn''t open the solution. When i view the designer, it wrote:-
Could not load file or assembly ''Syncfusion.Grid.Windows, Version=4.301.0.0, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89'' or one of its dependencies...

I''m using the syncfusion version 4.1.0.56.
I had view the code that u provided, it seems nothing much different with mine one.

Anyway, thanks for the reply.

Liam Reilly
Replied On September 21, 2006 09:19 AM

Hi there,
I am experiencing an identical issue with version 4.1.0.65, the Cell Button fires twice, or in some cases, several times.

Any ideas whats going on here?

Administrator [Syncfusion]
Replied On October 31, 2006 10:23 PM

The reason that caused the cell button has been fired twice is i had accidentally instantiated two same cell buttons click event handler.

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.

;