Hi Le,
Thanks for using Syncfusion products.
Yes, the “(All)” text can be modified in filter dropdown by using the CustomFilterBarCelModel and using SelectAllText property. Please make use of below code and sample,
#region CustomFilterBarCellModel
public class CustomFilterBarCelModel : GridTableFilterBarCellModel
{
public CustomFilterBarCelModel(GridModel grid)
: base(grid)
{
//To change the "All" text
this.SelectAllText = "Sample";
//this.SelectCustomText = "Custom text";
//this.SelectEmptyText = "Some Text";
}
}
#endregion
//Registering and adding cell model to Grid
this.gridGroupingControl1.TableModel.CellModels["CustomFilterBarCell"] =newCustomFilterBarCelModel(this.gridGroupingControl1.TableModel.Model);
this.gridGroupingControl1.TableDescriptor.Appearance.FilterBarCell.CellType = "CustomFilterBarCell"; |
Screenshot
Regards,
Arulpriya