ShowFilterBar does not work

setting filterbar to true seems to have stopped working. I can see the filter bar, but it won't let me type into it. I am setting the columns' allowfilter property to true. Are there any other conditions that might prevent the filterbar from being enabled?

Code snippet:
GridTableDescriptor gtd = ggc.TableDescriptor;
gtd.TopLevelGroupOptions.ShowFilterBar = true;
gtd.Columns["StartDate"].AllowFilter = true;
gtd.AllowEdit = true;
gtd.AllowNew = true;
gtd.AllowRemove = true;
ggc.TableModel.ColWidths.ResizeToFit ...

thanks,
scott

1 Reply

HA haneefm Syncfusion Team October 2, 2007 09:56 PM UTC

Hi Scott,

Here is a minimal sample that works fine without any issues. Please refer this link for the sample:
http://websamples.syncfusion.com/samples/Grid.Windows/I33106_04Apr07/main.htm

The above sample shows the filterbar by enumerating through the GridColumnDescriptorCollection and enable the filter by setting AllowFilter and TopLevelGroupOptions.ShowFilterBar property to True. The following is the code snippet.

// Grid Property settings
this.gridGroupingControl1.TopLevelGroupOptions.ShowFilterBar = true;

// Adding to visible Columns collection of the grid
foreach (GridColumnDescriptor desc in gridGroupingControl1.TableDescriptor.Columns)
{
if( desc.Name != "UnBoundColumn1")
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Add(desc.Name);
desc.AllowFilter = true;
}

Is it possible for you to upload us a minimal sample to reproduce the issue here? This will help us to analyse the issue further.

Best regards,
Haneef

Loader.
Up arrow icon