Hi,
I've got a form with Localizable set to True and a bound grid on it.
The column header caption text is being localized correctly along with less useful things like MaskInput and TextHAlignAsString. However, the Header Tooltip Text and Column Chooser Text properties (which the user can actually see) are not being localized at all.
Is there any trick to getting it to localize these properties, is it fixed in the latest version of the grid or do I have to manually set these properties from manually created resource files?
I'm currently using UltraGrid version 8.2.20082.2110.
Thanks,
John.
Yeah, we need the column chooser caption to be different from the column header caption since the header text is geared towards fitting as many columns on screen as possible.
Hi John,
Ah, I was not aware of that property and I looked for it on the Column Header not on the column.
I checked it out and it appears that this property is not localizable, but it obviously should be, so I'm going to forward this thread over to Infragistics Developer Support and have it corrected.
Of course, you only need this property if you want the column to display something different in the ColumnChooser than it displays in the actual grid. Is that the case in your application?
We will be moving to the latest version of the grid in the next couple of months, so if the tooltips localize in that version it will be good.
The column chooser property is actually Column Chooser Caption. E.g.
UltraGridColumn10.ColumnChooserCaption =
"Category Description"
The Column Chooser Caption is useful because our column header text is split on two lines for most columns, so it doesn't look great in the column chooser dialog.
Is Column Chooser Caption localizable in the latest version as well?
The Caption property works because it's marked with a Localizable attribute. However, this attribute tends to bloat your code and your assemblies quite a bit, so we don't set it on every property.
ToolTipText is also marked with this attribute, but it was only added in 2009. So the only way for you to get design-time localization support for the ToolTipText is to upgrade. If you cannot do that, then you will have to localize the ToolTipText at design-time.
Regarding "Column Chooser Text", I'm not exactly sure what you mean by this. There's no ColumnChooserText property that I am aware of. So I assume you are saying that when the column shows up in the ColumnChooser, it's displaying the default text and not the localized text. If that's the case, then it's clearly a bug. Version 8.2 is retired now and we are no longer doing service releases for that version. So you might want to try this out in a trial version of v10.3 and see if it has been fixed.