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
SIGN IN To post a reply.
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
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";
|
Sample link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/LocalizeAllText174554718
KB link: https://www.syncfusion.com/kb/4489/how-to-replace-the-filter-bar-cell-text-as-empty-instead-of-all
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
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
-
DI Dima
- Jun 21, 2005 02:41 PM UTC
- Jan 19, 2018 09:43 AM UTC