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.
Syncfusion Feedback

FilterBar options

Thread ID:

Created:

Updated:

Platform:

Replies:

30647 Jun 21,2005 02:41 PM UTC Jan 19,2018 09:43 AM UTC Windows Forms 3
loading
Tags: GridControl
Dima
Asked On June 21, 2005 02:41 PM UTC

Filter bar after it''s craetion has ''(All),(Custom),(Empty)'' options. How can I remove it/change it to my local language Thanks

Administrator [Syncfusion]
Replied On June 21, 2005 03:17 PM UTC

Here is a forum thread that discusses this task. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=25998

Nga Vu
Replied On January 18, 2018 03:30 PM UTC

Here is a forum thread that discusses this task. http://www.syncfusion.com/Support/Forums/message.aspx?MessageID=25998

You cannnot change it

Arulpriya Ramalingam [Syncfusion]
Replied On January 19, 2018 09:43 AM UTC

Hi Customer,   
   
Thanks for contacting Syncfusion support.   
   
We have provided the direct support to remove/localize the default items of filter drop down from the version v4.2.x.x. In order to modify the default text of “(All)”/” (Custom)”/” (Empty)” in filter dropdown, the GridTableFilterBarCelModel can be used. The SelectAllText/SelectCustomText/SelectEmptyText properties can be used to set the custom/localized string instead of “All/Custom/Empty” respectively. Moreover, the AllowCustomFilter and AllowEmptyFilter properties of FilterRowOptions can be disabled to remove the items from the drop down. Please make use of below code and sample,    
   
Code example   
   
foreach(GridColumnDescriptor column inthis.gridGroupingControl1.TableDescriptor.Columns)   
{   
    column.AllowFilter = true;   
    //To disable the "Custom" item from the dropdown of the filterbar cell   
    column.FilterRowOptions.AllowCustomFilter = false;   
    //To disable the "Empty" item from the dropdown of the filterbar cell   
    column.FilterRowOptions.AllowEmptyFilter = false;   
}   
   
//To get the FilterBarCellModel   
GridTableFilterBarCellModel model =this.gridGroupingControl1.TableModel.CellModels["FilterBarCell"asGridTableFilterBarCellModel;   
   
//To set the custom text for "All"   
model.SelectAllText = "LocalizedAllText";   
//To set the custom text for "Custom"   
model.SelectCustomText = "LocalizedCustomText";   
//To set the custom text for "Empty"   
model.SelectEmptyText = "LocalizedEmptyText";   
   
   
 
Note   
Please let us know your product version, if you could not avail this support. So that, we could provide you the best solution at the earliest.   
   
Regards,   
Arulpriya   


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.

Warning Icon 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.Close Icon

;