The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
...I want to click on a row and select that row and click on the same row to unselect it. Everything works fine. I want to click anywhere in the ggc and bring up a context menu to operate on the SelectedRecords. ... so I filter out the mouse click with the settings below...
However, the context menu is behaving sporadically. It would only come up when the right click occurs on a selected row. Secondly, it would not come up when I right click the same row twice.
ADAdministrator Syncfusion Team February 2, 2007 08:58 PM UTC
Hi James,
Thanks for being patience.
This can be achieved by handling the TableControlMouseDown event and accordingly showing the context menu popup on the respective co-ordinates.
In the following code snippet, the TableControlMouseDown event is handled and context menu is shown only for the RecordFieldCell >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e) { GridTableCellStyleInfo styleinfo = e.TableControl.PointToTableCellStyle(new Point(e.Inner.X, e.Inner.Y)); if(e.Inner.Button == MouseButtons.Right && styleinfo.TableCellIdentity.TableCellType == GridTableCellType.RecordFieldCell) { // show contextmenu1 this.contextMenu1.Show(this.gridGroupingControl1, this.gridGroupingControl1.PointToClient(Control.MousePosition)); } } >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>