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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Localization

Thread ID:

Created:

Updated:

Platform:

Replies:

123485 Mar 21,2016 11:19 PM UTC Apr 5,2016 04:54 AM UTC WPF 9
loading
Tags: SfDataGrid
Soumyajit Roy
Asked On March 21, 2016 11:19 PM UTC

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

Srinivasan Vasu [Syncfusion]
Replied On 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


Soumyajit Roy
Replied On 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

Sivakumar R [Syncfusion]
Replied On 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

Soumyajit Roy
Replied On March 29, 2016 11:30 PM UTC

Thank You. 

Ashwini Paranthaman [Syncfusion]
Replied On 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.

Soumyajit Roy
Replied On 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

Jai Ganesh S [Syncfusion]
Replied On 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



Soumyajit Roy
Replied On 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. 

Jai Ganesh S [Syncfusion]
Replied On 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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;