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.
Unfortunately, activation email could not send to your email. Please try again.

ShowFilterBar does not work

Thread ID:

Created:

Updated:

Platform:

Replies:

68828 Oct 2,2007 03:12 PM Oct 2,2007 05:56 PM Windows Forms 1
loading
Tags: GridControl
Scott Dubose
Asked On October 2, 2007 03:12 PM

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

haneefm [Syncfusion]
Replied On October 2, 2007 05:56 PM

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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;