Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

multiple custom short date display formatters

$
0
0
IE 8
SmartGWT 3.0
SmartClient Version: v8.2p_2012-10-11/PowerEdition Deployment (built 2012-10-11)


Hello,

Is it possible to have a custom short date display formatter for a DateItem in a ListGrid apart from the system-wide DateUtil.setShortDateDisplayFormatter ?

The build-in date display formats do not fulfil my requirements therefore I have defined a system-wide short date display format. However, I want an additional, different formatter for a specific DateItem in a ListGrid.

As of now, unless I specify a date formatter for that DateItem (as in dateItem.setDateFormatter(DateDisplayFormat.ABCD)) the system-wide one is used.

As of now, my work around is to use one of the build-in DateDisplayFormats (so I can bypass the system-wide formatter) and then have a cellFormatter to specify the desired format.

Is there a way to have custom date display formatters specified for individual DateItems?

Any chance you could point out what am I missing here ?


Thanks in advance,
Stathis

Viewing all articles
Browse latest Browse all 4756

Trending Articles