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)
}
}
AD
Administrator
Syncfusion Team
September 11, 2006 05:54 AM UTC
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
AD
Administrator
Syncfusion Team
September 11, 2006 12:09 PM UTC
I''m using the version 4.1.0.56.
AD
Administrator
Syncfusion Team
September 11, 2006 12:23 PM UTC
I couldn''t open the solution that you provided. I think maybe because of my syncfusion version is older than it.
AD
Administrator
Syncfusion Team
September 13, 2006 07:22 AM UTC
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.
LR
Liam Reilly
September 21, 2006 01:19 PM UTC
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?
AD
Administrator
Syncfusion Team
November 1, 2006 03:23 AM UTC
The reason that caused the cell button has been fired twice is i had accidentally instantiated two same cell buttons click event handler.