Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    #16
    Hi jballh,

    Did you solve this somehow ? I'm really baffled with dateformat handling in smartgwt. It seems we're limited with the formats provided with the DateDisplayFormat enum and it falls short of common european dot-separated formats.

    I've tackled the listgrids with custom cellformatters but still fighting with formitem's to get them rendered correctly.

    Comment


      #17
      i encounter the same issues, but it seems the DateUtil does not help, could you please kindly look into following thread?
      http://forums.smartclient.com/showthread.php?p=49801#post49801
      thanks!!

      Comment


        #18
        netname user was mention on a reply of his on this thread:
        "The date chooser won't show the date on the text field but Today's date.

        For example, enter 30/05/2009 on the text field, go to another field, then come back on click on the date chooser and the selected day will be Today's date instead on June 30th, 2009."

        How can this be solved?
        @netname: did you solved this problem?

        Comment


          #19
          Originally posted by netname
          I entered the code suggeste in the Various Control sample and the display works fine but the date chooser won't show the date on the text field but Today's date.

          For example, enter 30/05/2009 on the text field, go to another field, then come back on click on the date chooser and the selected day will be Today's date instead on June 30th, 2009.

          Code:
          	        DateUtil.setShortDateDisplayFormatter(new DateDisplayFormatter() {
          	            public String format(Date date) {
          	                if(date == null) return null;
          	                //you'll probably want to create the DateTimeFormat outside this method.
          	                //here for illustration purposes        
          	                DateTimeFormat dateFormatter = DateTimeFormat.getFormat("dd/MM/yyyy");
          	                String format = dateFormatter.format(date);
          	                return format;
          	            }
          	        });
          Did you solved this problem?
          Thank you!

          Comment


            #20
            I am also facing the same problem , and can't set the dateItem value to my desire specific format. Is it till a bug? or there is any fix?

            Comment


              #21
              See previous posts by Isomorphic - if you supply a custom dateFormatter, you need to setInputFormat() to match the MDY ordering you're outputting.

              Also consider grabbing a nightly build of 2.5 (smartclient.com/builds). There are more system-wide settings available and all the docs are better interlinked and explained.

              Comment

              Working...
              X