Hello,
On my C# APP I have several Localizable WinGrids. The view resources files containing, per example, the caption of grid's header changes everytime that I change my view. And that's my problem...
The column keys changes but the resource stays the same so there are diffrent captions for the same column deppending of the culture.
How can i solve my probem?
Thank you in advance.
Best regards,
Maria
Hello ,
If in your resource files continues localization strings for your predefined UltraGrid columns , it is expected when you change culture captions to be transated with values from your resx file for the current culture.
http://msdn.microsoft.com/en-us/library/y99d1cd3%28v=vs.71%29.aspx
If you do not what this to happen, remove your localization string from your resources files.
Please let me know if you have any further questions or if I am missing something.
I'm not sure that you understood my problem.
On resources files, the column keys are dynamically. So, everytime that I open my Design View, resources files are updated.
The problem it that only column keys are updated but tehere caption not. So, the resources files are outdated.
How can I solve my problem?
Thank you.
Hello,
On the following link you could learn How to get latest SR:
http://ko.infragistics.com/community/forums/t/29398.aspx
Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
I've tried to test my sample with new Infragistics version but I could not do that wothout installing the new version. But, I cannot uninstall the one I have so I will ask you if you could test it for me. Is that ok?
I need to attach my Sample.csproj to this forum but I dont know how to do that. Can you give me a explanation?
MAria
Yes, we could test this for you. You should provide us a simple sample, which we could run on our end and exact steps that we should follow in order. In order to attach your details, first please zip them, the after you click on “Replay” button go to “Options” tab and click on “Add/Update” button. Click on “Browse…” in the dialog window and navigate to your files, then click save.
Also I want to mention that you could install Infragistics 13.1 and this will no affects your Infragistics 10.3. Keep in mind that for Infragistics 13.1 you should use visual studio 2010 or later.
Please let me know if you have any further questions.
Thank you very much!!
I've attached Sample.zip to this reply.
The project has a usercontrol called "MyGrid2" which contains two resources files: "MyGrid2" and "MyGrid2.en-US". As you can see, the columns ID on this files are different because ecverytime that I update my view, only "MyGrid2.rescx" is updated...
I'm waiting for your answer.
Thank you for the provided simple. I was able to reproduce your issue with Infragistics 10.3 RTM and the latest service release. After that I have tested this with Infragistics 13.1 and I was not able to reproduce this anymore, please see attached video. So it seem that this was an issue in version 10.3 and in the latest version 13.1 this issue is fixed, and what you could do is to upgrade to Infragistics 13.1.
Good morning,
I saw the sample that you send and I understood that the problem doesn't occur when we need to use other infragistcs components. But, in my case, I want to use a WinGrid. Can you send me a video using Wingrid's columns where I can see this working ?
I haven't changed anything in yours solution, except changing the version of Imagistics, which means that I haven't changed your resx files, and I haven't made any changes on the interface via designer or changed Designer.cs. The explanation for your doubts is the following: Resource's strings for the languages different of the default, are generate only for the components which were changed under the new language. To illustrate this I have captured a small video where I do not use any Infragistics components. As you can see from the video, in af.resx there is a record for lable1, because only this component was changed under this language, and record for button1 is missing, because it was not changed under this language. So in your scenario it seems that you haven’t modified captions for all of the columns of ultragrid under en-US, and that’s why in MyGrid2.en-US.resx key for ultraGridColumn2 is missing, since it wasn’t been changed under en-US. If you change caption of ultraGridColumn2 under en-US, you should have a key for this column in MyGrid2.en-US.resx. But you should keep in mind that in Infragistics 10.3 there were an issue about localization, and you should upgrade to the Infragistics 13.1 in order everything works properly.
Hi,
As far as I concern the problem persists. If you look at the resources files you gave me it's easier to understand.
On MyGrid2.resx file, the column which header is "Doente" has the key: ultraGridColumn2.
"<data name="ultraGridColumn2.Header.Caption" xml:space="preserve">
<value>Doente</value>
</data>"
On the other hand, the key ultraGridColumn2 does not exist on MyGrid2.en-US.resx. Instead the column which header is "Doente" has the key ultraGridColumn7.
So, If I change the header caption on MyGrid2.en-US.resx file, it will be impossible to show the en-US header.
Here is the required files.
I hope that this will helps you.
I've already saw the video you show. Thank you!!
Can you please attach to your reply the final version of MyGrid.rescx and MyGrid.en-US.rescx files?