how to localize excel-like _number_ filter captions in GridGroupingControl

hi,
how can I localize captions displayed in excel-like filter of type number in GridGroupingControl ?



best regards,
Adam



5 Replies

SN Sindhu Nagarajan Syncfusion Team April 2, 2018 09:32 AM UTC

Hi Adam, 

Thanks for contacting Syncfusion support. 

The strings displayed in GridExcel filter can be localized by implementing the ILocalizationProvider interface and the strings are modified based on default string by using the GetLocalizedString () method.  
We already provided a dashboard sample to localize the default strings in GridExcelFilter and GridDynamicFilters. Please make use of the sample in your local machine at the below location,  
  
Dashboard sample location: <Install_Location>\Syncfusion\EssentialStudio\<Product_Version>\Windows\Grid.Grouping.Windows\Samples\Localization Samples\Localization Demo\CS  
 
Please refer to the below  UG link, 

Please let us know if you have any other queries. 

Regards, 
Sindhu  



AM amsm April 2, 2018 11:31 AM UTC

I'm sorry but examples You provide don't explain how to localize __NUMBER__ filter.
I know the way localization should be done, but I can't find proper strings used in number filter.
Look at my picture example below. This is __number__ excel-like filter where I already localized main part (on the left) and I can't localize submenu for number filters (on the right).
Could You provide specific example of localization for number excel-like filter where column grid has numeric data type ???



best regards,
Adam



SN Sindhu Nagarajan Syncfusion Team April 3, 2018 11:25 AM UTC

Hi Adam, 

Sorry for the inconvenience caused. 

The strings of NumberFilters menu item can be replaced by strings to be displayed in menu items based on the default string. Please refer to the below code and sample,  
 
Code Example  
public string GetLocalizedString(System.Globalization.CultureInfo culture, string name,object obj) 
{ 
    switch (name) 
    { 
        case "DateTimeFilters": 
            return "Terminzeit filter"; 
        case "Office2007FilternumberEqual": 
            return "Gleich ist"; 
        case "Office2007FilternumberNotEqual": 
            return "Nicht gleich"; 
       case "Office2007Filtergreater": 
            return "Beginntmit"; 
       case "Office2007FiltergreaterOrEqual": 
            return "Endetmit"; 
       case "Office2007Filterlessthan": 
            return "enthält"; 
       case "Office2007FilterlessOEqual": 
            return "Benutzerdefinierte Filter"; 
       case "Office2007FilternumberBetween": 
            return "und"; 
       case "Office2007Filtertop10": 
            return "oben 10"; 
       case "Office2007FilteraboveAverage": 
            return "überdurchschnittlich Filter"; 
       case "Office2007FilterbelowAverage": 
            return "unterdurchschnittlich"; 
       case "Office2007FilternumberCustomFilter": 
            return "Benutzerdefinierter Filter"; 
    } 


Please let us know if you have any other queries. 

Regards, 
Sindhu  



AM amsm April 3, 2018 12:15 PM UTC

this is it,
thank You very much.
Adam


AR Arulpriya Ramalingam Syncfusion Team April 4, 2018 03:53 PM UTC

Hi Adam, 
 
Thanks for the update. 
 
We are glad that the provided solution resolved your scenario and please let us know, if you need any further assistance. 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon