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

FilterBar options

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

3 Replies

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


NV Nga Vu replied to Administrator 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


AR Arulpriya Ramalingam Syncfusion Team 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   


Loader.
Live Chat Icon For mobile
Up arrow icon