i can not find the resources string inorder to translate.
examples:
Perfect! found another issue however. how do i translate print(ctrl+p) and export(ctrl+e) select all(ctrl+s) unselect all(ctrl+U) when using export/print functions with the xamdatagrid???
Hello Pete,
Thank you for your replies. I have been looking into them and the resource string for the month is “SpecialFilterOperand_Month_DisplayContent” and its default value is “{0}” and it is one for all the months of the year. In order to change the names of the months, you can handle the RecordFilterDropDownPopulating event of the XamDataGrid, where you can access all items in the drop down and change their DispalyName property as follow:
private void XamDataGrid_RecordFilterDropDownPopulating(object sender, Infragistics.Windows.DataPresenter.Events.RecordFilterDropDownPopulatingEventArgs e)
{
foreach (var item in e.DropDownItems)
switch (item.DisplayText)
case "January":
item.DisplayText = "Jan";
break;
case "February":
item.DisplayText = "Feb";
………………………………
I have created a sample application for you, that shows how you can implement this.
Also, the XamDataGrid provides localization for its resource strings for German, French and Spanish. Which means that if the CurrentCulture of the application is French, the XamDataGrid will show those strings in French.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
the lines of code below work fine for most items in the filter drop down. However i cant seem to find how to translated the months in my dropdown in the xamdatagrid
Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_ThisYear_Description", SmartLinkStrings.SpecialFilterOperand_ThisYear_Description); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_ThisYear_DisplayContent", SmartLinkStrings.SpecialFilterOperand_ThisYear_DisplayContent); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_Today_Description", SmartLinkStrings.SpecialFilterOperand_Today_Description); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_Today_DisplayContent", SmartLinkStrings.SpecialFilterOperand_Today_DisplayContent); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_Tomorrow_Description", SmartLinkStrings.SpecialFilterOperand_Tomorrow_Description); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_Tomorrow_DisplayContent", SmartLinkStrings.SpecialFilterOperand_Tomorrow_DisplayContent); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_Top_Description", SmartLinkStrings.SpecialFilterOperand_Top_Description); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_Top_DisplayContent", SmartLinkStrings.SpecialFilterOperand_Top_DisplayContent); Infragistics.Windows.Resources.Customizer.SetCustomizedString("SpecialFilterOperand_TopPercentile_DisplayContent", SmartLinkStrings.SpecialFilterOperand_TopPercentile_DisplayContent);
It is the drop down in a xamdatagrid that allows you to filter by certain criteria. In the drop down the months of the year are listed. I need to know how to translate this information
Hello Petetataliba,
Thank you for your reply. I have been looking into your question and I am not completely sure what exactly you are referring to by filter drop downs for the XamDataChart. Would you please provide me with more detailed on which strings you would like to change and if possible a screenshot that shows the strings?
Looking forward to hearing from you.