Localize "Select rows were:" "and" "or" "done" words in FilterControl

How can i localize texts in FilterControl in SfDataGrid? I've localized SfDataGrid with resource file, most of the words where translated, but i could find this four words that are in the subject.

3 Replies

MA Mohanram Anbukkarasu Syncfusion Team June 27, 2018 12:30 PM UTC

Hi Tomasz,   
  
Thanks for contacting Syncfusion support.   
  
Currently we don’t have localization support for the "Select rows were:" "AND" "OR"  and "Done" strings. Localization support for these strings will be included in our Volume 2, 2018 SP1 release which is expected to be released by the end of July, 2018.   
  
If you need to change the specified strings in the FilterControl, you can use the SfDataGrid.FilterPopupShowing event and change the required strings. Please refer to the below code example and sample from the given location.   
  
Code Example:   
sfDataGrid1.FilterPopupShowing += sfDataGrid1_FilterPopupShowing;   
   
void sfDataGrid1_FilterPopupShowing(object sender, Syncfusion.WinForms.DataGrid.Events.FilterPopupShowingEventArgs e)   
{   
    e.Control.FilterDescription = "Sélectionnez les lignes où:";   
    e.Control.OrButtonText = "Ou";   
    e.Control.AndButtonText = "Et";   
    if (e.Control.DoneButton != null)   
        e.Control.DoneButton.Text = "Terminé";   
    if (e.Control.OkButton != null)   
        e.Control.OkButton.Text = "D'accord";   
    if (e.Control.CancelButton != null)   
        e.Control.CancelButton.Text = "Annuler";   
}   
 
 
Regards, 
Mohanram A. 
 



TD Tomasz Dudzic June 27, 2018 06:30 PM UTC

Thank you very much, it works :)


MA Mohanram Anbukkarasu Syncfusion Team June 28, 2018 04:44 AM UTC

Hi Tomasz,   
 
Thanks for your update. 
 
We are glad to know that the given solution has solved your query. Please let us know, If you need any further assistance. 
 
Regards, 
Mohanram A. 


Loader.
Up arrow icon