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.
Hello:
I have problems using the GridGroupingControl filter bar if
ListBoxSelectionMode property is SelectionMode.One.
When the user clicks in the filter cell to drown the options, they don''t appear. It works with the double click, but I''m handling that event to open a form.
How can I make the filter bar working in the click event?
Best regards
ADAdministrator Syncfusion Team March 15, 2005 04:22 PM UTC
Hi Jose,
thank you for reporting this problem. We fixed it now in our codebase and the fix will be available with the next build.
You can workaround the problem using this code:
this.groupingGrid1.TableControlCellClick += new GridTableControlCellClickEventHandler(groupingGrid1_TableControlCellClick);
private void groupingGrid1_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
{
GridTableCellStyleInfo style = (GridTableCellStyleInfo) e.TableControl.Model[e.Inner.RowIndex, e.Inner.ColIndex];
if (style.TableCellIdentity.TableCellType == GridTableCellType.FilterBarCell
)
{
Point pt = new Point(e.Inner.MouseEventArgs.X, e.Inner.MouseEventArgs.Y);
GridCellRendererBase renderer = e.TableControl.CellRenderers[style.CellType];
if (renderer is GridComboBoxCellRenderer && renderer.PerformLayout(e.Inner.RowIndex, e.Inner.ColIndex, style).Buttons[0].Contains(pt))
{
e.Inner.Cancel = true;
}
}
}
Please post further questions to the Essential Grouping forum.
Thank You,
Stefan Hoenig
>Hello:
>I have problems using the GridGroupingControl filter bar if
>ListBoxSelectionMode property is SelectionMode.One.
>When the user clicks in the filter cell to drown the options, they don''t appear. It works with the double click, but I''m handling that event to open a form.
>How can I make the filter bar working in the click event?
>
>Best regards