We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Localization

Hello,

I would like to localize sfDataGrid NOT using .resx file but using .xaml resource dictionary. 
All my localized strings are stored in individual .xaml files.

Could you please give me any direction [with a sample which is always useful] 

Kind Regards,
Soumyajit Roy

9 Replies

SV Srinivasan Vasu Syncfusion Team March 23, 2016 01:39 AM UTC

Hi Soumyajit Roy,
Thanks for contacting Syncfusion support.

We have analyzed your query and it is not possible to localize SfDataGrid using .xaml resource dictionary. Because, In SfDataGrid we have to give support only for .resx file to Localize the SfDataGrid.

Please let us know further assistance on this.
 

Regards,
Srinivasan



SR Soumyajit Roy March 23, 2016 09:32 PM UTC

Thank You Srinivasan for your response. Do you think following would be a practical approach----

Customization of the "Filtering menu options" dialog box
-----------------------------------------------------------------
Find out the type of the "Filtering menu options" dialog [what is that btw?]
Derive a type from that type.
Override the Init method.
In the Init method, use reflection to find out the Id s of all TextBlock.
Set the DisplayMemeberPath with a Converter which will convert the Text property to the localized string.
Set the derive class to the sfDataGrid filtering menu option again.

Please let me know whether the approach looks practical?

Kind Regards.
Soumyajit Roy


SR Sivakumar R Syncfusion Team March 25, 2016 01:56 AM UTC

Hi Soumyajit,

Please find the sample which contains GridFilterControl and AdvancedFilterControl styles. You can edit style or derive from existing controls to achieve your requirement.
http://www.syncfusion.com/downloads/support/forum/123485/ze/GettingStarted929417634



Thanks,
Sivakumar


SR Soumyajit Roy March 29, 2016 11:30 PM UTC

Thank You. 


AP Ashwini Paranthaman Syncfusion Team March 30, 2016 12:16 PM UTC

Hi Soumyajit,
Thank you for the update.
Please let us know if you need any other assistance.
-Ashwini P.


SR Soumyajit Roy April 3, 2016 11:25 PM UTC

Hi Srinivasan,

Thank you for the sample, I have managed to localized the advanced filter window [marked in green in one of your replies below] using the XAML resource.
I will also have to localize the main filter window [as you have marked in blue in your reply], could you please send me the XAML style for that blue marked window as well.

Appreciate your help.

Regards,
Soumyajit Roy


JG Jai Ganesh S Syncfusion Team April 4, 2016 11:24 AM UTC

Hi Soumyajit,


We have already provided the GridFilterControl style in MainWindow resources in our last updated sample. However we have add the whole GridFilterControl style in the Resources folder and please find the sample from the below location,


Sample: http://www.syncfusion.com/downloads/support/directtrac/154013/ze/GettingStarted-1560945523


Regards,

Jai Ganesh S




SR Soumyajit Roy April 4, 2016 10:17 PM UTC

Thank you, Ganesh. That's exactly I was looking for, I will try to localize that part as well using the XAML. 


JG Jai Ganesh S Syncfusion Team April 5, 2016 04:54 AM UTC

Hi Soumyajit,


Thank you for the update.


Please let us know if you need further assistance on this.


Regards,

Jai Ganesh S


Loader.
Live Chat Icon For mobile
Up arrow icon