How can I simulate an 'Arrange by Date - Show in Groups' view?
Are you talking about the UltraGrid? Nothing easier than that:
Just set the GroupByMode property of the column properties. Works with DATE fields as well!
Well I though of that but I was looking for some sort of calendar control mode that can do this automatically like in Outlook, so translation etc. are supported.
Not sure what you mean. When using "OutlookDate" the grid groups
- this week
- last week
- last month
- ...
Isn't that like in Outlook?
Are you talking about UltraGrid? Does it have special functionality for this? Do you have a link to documenation? Screen print?
Jepp. UltraGrid.
Just set the GroupByMode property of the column properties. Works with DATE fields as well!
As described in my first post. Go into the grid designer to the properties of a column and set the GroupByMode property to something else then default.
Or in code: ultraGridColumn24:GroupByMode = Infragistics.Win.UltraWinGrid.GroupByMode:OutlookDate.
That's a matter of fact
I believe, OE developers need to get used to Infragistics documentation, forum and googleing for samples.
...and the visual impression...
Well not exactly what I meant but I will start playing with this. It looks like it generates stuff like 'today', 'last week' etc.
I think will become more a matter of learning all the
features of the .NET controls than leaning the 10.2A
ABL...
Well I think it is a matter of both!
That's a matter of fact
I believe, OE developers need to get used to
Infragistics documentation, forum and googleing for
samples.
It seems to me that the Infragistics documentation has extremely few visuals. Or am I missing something (BTW I am a little bit disabled at this customer site as the only internet connection if through Citrix with an old browser. For example I cannot view the Infragistics videos).
Well not exactly what I meant but I will start
playing with this. It looks like it generates stuff
like 'today', 'last week' etc.
And what about multilingual support... (today/heute/vandaag)
Most of their visible strings can be localized using their Resource manager class:
Infragistics.Win.UltraWinGrid.Resources
Then use the SetCustomizedString (pcKey, pcTranslatedText ) method.
It's just a matter of finding all valid and required key values in the documentation. Haven't found the ones you were asking for so far. Somebody interested in that should post the to the Infragistics forum and get back with a result here
Well thanks Simon and Mike, I finally got this working. At first I did not realize the details of GroupByMode:OutlookDate.
Attached is a sample of how this looks on my Dutch system. Note that the word 'Monday' is properly translated to Dutch ('maandag') but the other terms are not.
How do I fix that?
Are you saying that SetCustomizedString works for
"Monday" but not for the other strings?
No I am saying this is what happens if I do nothing.
My guess is that the weekdays come from the Windows Locale.
The complete list of resource strings can be found here:
http://help.infragistics.com/Help/NetAdvantage/NET/2008.2/CLR2.0/html/WinGrid_Resource_Strings.html
And how are you going to use the xlated strings from Outlook...? (if installed)
I guess Peter will go for the "hardcoded" setcustomizedstring("Older", "Ouder") etc.
So you are saying I have to translate the Outlook_GroupByMode_Description_ strings in my application but not the weekdays?
That's my guess.
I haven't tried the GroupByMode description strings yet. But for all other stirngs this works really nice. The hardest part is actually to find a well sounding German translation - but Outlook is a good template for that.
The hardest part is actually to find a well sounding German translation
We have not had that problem here since 1945
Sorry could not resist
Hey - Hey. Is that for helping you with Dutch translations?
Dutch people are the most frequent tourists in Germany (by the total number of nights stayed here). More than US citizen, Japanise and English guys. So you folks must know how nice the country and the people are here Well, we have improved over the last 60 years.
"Don't mention the war!"
http://en.wikipedia.org/wiki/The_Germans
Dutch people are the most frequent tourists in
Germany (by the total number of nights stayed here).
More than US citizen, Japanise and English guys. So
you folks must know how nice the country and the
people are here Well, we have improved over the
last 60 years.
I like your beer...
Just kidding Mike - I count you among my German friends.
-peter
I know, Peter!
That's why I did resist and did inot reply with a caravan joke ...
Talk soon!
Mike
You can have as much beer as you want during our next PUG meeting on November 5th. Interested in presenting? Maybe your development progress with 10.2A?
(If released from NDA for this purpose by Progress)
Most of their visible strings can be localized using
their Resource manager class:
Infragistics.Win.UltraWinGrid.Resources
Then use the SetCustomizedString (pcKey,
pcTranslatedText ) method.
It's just a matter of finding all valid and required
key values in the documentation. Haven't found the
ones you were asking for so far. Somebody interested
in that should post the to the Infragistics forum and
get back with a result here
OK here goes:
define variable rc as Infragistics.Shared.ResourceCustomizer.
/* Get the reference */
rc = Infragistics.Win.UltraWinGrid.Resources:Customizer.
/* Define the translations */
rc:SetCustomizedString"Outlook_GroupByMode_Description_Today","Vandaag").
etc.
The code has to be run before intializing the components, which makes sense, normally in some startup procedure I assume. It appears to be a static class, but how can you tell from the Class Browser?
class, but how can you tell from the Class Browser?
I guess you can't. I haven't checked that in Visual Studio yet. But there might remain areas where a written documentation is superior to the class browser anyhow. I don't neccessary see that as a critical limitation in the OpenEdge Architect.
Would you have guessed that the Resources class if for localization - even it would have been indicated as static? Well you probably could. But then the class browser can't show you the resource strings (because of the design Infragistics has chosen here).
The Infragistics Forum is full of posts in that direction. So obviously the Visual Studio leaves you alone with this as well...