Filter localization

I'm using filtering functionality in GridGroupingControl.

It is possible put text 'All' in other language ?





5 Replies

AR Arulpriya Ramalingam Syncfusion Team December 18, 2017 07:15 AM UTC

Hi Krzysztof,  
  
Thanks for contacting Syncfusion support.  
  
Yes, the “(All)” text can be modified in filter dropdown by using the GridTableFilterBarCelModel. The SelectAllText property can be used to set the custom/localized string instead of “All”. Please make use of below code and sample,   
  
Code example  
  
//To get the FilterBarCellModel  
GridTableFilterBarCellModel model =this.gridGroupingControl1.TableModel.CellModels["FilterBarCell"asGridTableFilterBarCellModel;  
  
//To set the custom text for "All"  
model.SelectAllText = "CustomText";  
  
  
Note  
You can customize the options of GridDynamicFilter and GridExcelFilter by implementing the ILocalization interface. Please refer to the below dashboard sample,  
  
Dashboard sample link: <Install_Location>\Syncfusion\EssentialStudio\<Product_version>\Windows\Grid.Grouping.Windows\Samples\Localization Samples\Localization Demo\CS  
  
Regards,  
Arulpriya  



KA Krzysztof Adamowicz December 18, 2017 10:18 PM UTC

Thanx, that was it


AR Arulpriya Ramalingam Syncfusion Team December 19, 2017 05:05 AM UTC

Hi Krzysztof, 
 
Thanks for your appreciation.    
 
We are glad to hear that the provided solution was resolved your scenario.   
 
Please let us know if you have any other queries.    
   
Regards, 
Arulpriya 



KA Krzysztof Adamowicz December 20, 2017 10:12 AM UTC

Questions:
1) I set SelectAllText to "*" in one Grid its ok, but this text also change in other Grid. It is normal ?
2) Rows "Custom" and "Empty".
I turned of them but filter start working wrong, when I choosing row in filter then other was selected (next on the list).
When turn on them it is working right.
It is any dependence in this options ?


AR Arulpriya Ramalingam Syncfusion Team December 21, 2017 05:44 PM UTC

Hi Krzysztof, 
 
Thanks for your update. 
 
Query 
Response 
1) I set SelectAllText to "*" in one Grid its ok, but this text also change in other Grid. It is normal ? 
The GridGroupingControl has the default support to change the “(All)” value in the FilterBarCell by using the SelectAllText property. You can change the value for each grid by retrieving the GridTableFilterBarCelModel and setting the custom string to the SelectAllText property.  
 
From your update we suspect that, you are Creating CustomCellModel/Renderer to change the value of SelectAllText. If yes, we would recommend you to use the solution in our previous update since it is a feasible solution for your case. 
 
 Please let us know the way of changing the value of SelectAllText so that we could proceed further on this. 
Rows "Custom" and "Empty". 
I turned of them but filter start working wrong, when I choosing row in filter then other was selected (next on the list). 
When turn on them it is working right. 
It is any dependence in this options ? 
As per our grid architecture, the selected value to filter the records will be retrieved from the items collection based on index. This is issue will occur when creating CustomCellModel and CustomRenderer to disable the “Custom” and “Empty” items from the dropdown which has been fixed in current trunk. Moreover, we have created a new support ticket under your account for better follow-up with the reported scenario. So, we request you to follow-up with that incident using below link. 
 
 
 
Please let us know if you have any other queries. 
 
Arulpriya 


Loader.
Up arrow icon