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. Image for the cookie policy date

SelectionMode.One and filter in a GridGroupingControl

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

1 Reply

AD Administrator 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

Loader.
Up arrow icon