Announcement

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

    Can't change the month in the date picker in RelativeDateItem (repost)

    I apologize for the repost but I've only now noticed that I posted the original topic in the wrong section and I don't see the "move" option.

    A simple example that renders the RelativeDateItem with everything default:

    Code:
    import com.smartgwt.client.widgets.Canvas;
    import com.smartgwt.client.widgets.form.DynamicForm;
    import com.smartgwt.client.widgets.form.fields.RelativeDateItem;
    
    public class DatePickerWoes extends Canvas {
        DatePickerWoes() {
            RelativeDateItem relativeDate = new RelativeDateItem();
            DynamicForm form = new DynamicForm();
            form.setItems(relativeDate);
            addChild(form);
            draw();
        }
    }
    The RelativeDateItem renders with the chooser icon. Click on the icon to open the chooser. Now:
    • The <<, <, >, >> arrows don't work;
    • The month name can be clicked to open the months table, but no month can be selected;
    • Everything else functions just fine;
    • If these items are inspected in browser's dev tools, it can be seen they have the *Disabled class, as-in "dateChooserNavButtonDisabled".
    Click image for larger version  Name:	relativedateitem_datechooser_highlights.jpg Views:	13 Size:	23.1 KB ID:	270646
    SmartClient Version: SNAPSHOT_v13.1d_2023-07-26/LGPL Development Only (built 2023-07-26)

    This used to work in the past, but I don't know which was the 1st version where it stopped.

    #2
    Thanks for the report - we see the issue in 13.1 and will update here when we have more information on a fix.

    Comment


      #3
      We've made a change to address the disabled navigation buttons in a DateChooser shelled from a RelativeDateItem with no startDate/endDate set.

      Please retest with a build dated August 22 or later.

      Comment


        #4
        Retested with 13.1-d20230822. It now works fine.

        Thanks!

        Comment

        Working...
        X