Announcement

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

    MiniDateRangeItem - allowRelativeDates has no effect

    hello


    I want to disable relative dates in MiniDateRangeItem widget. To do this I overwrote methof (allowRelativesDates) to return always false:
    new MiniDateRangeItem("field", "name"){

    @Override
    public native Boolean allowRelativeDates() /*-{
    return false;
    }-*/;
    };
    but unfortunately without any effects. Am I doing something wrong or how can we display simple dateItem instead of RelativeDateItem ?

    thanks in advance.

    (we use smartgwt 2.2)

    #2
    hello

    any suggestions / ideas how can we disable relative dates from MiniDateRangeItem widget ?

    Comment


      #3
      Any update on this?

      I see:

      allowRelativeDates

      public Boolean allowRelativeDates()
      Whether the DateRangeDialog opened when the pickerIcon is clicked should display RelativeDateItems or DateItems.
      Returns:
      true

      ---

      but no method to set if we should allow or not allow relative dates... as in

      public void setAllowRelativeDates(Boolean allowRelative);

      Any ideas?

      Comment


        #4
        You can use canvas.setDefaultProperties(), but you'll need to update your SmartGWT version first (which you badly, badly need to do anyway - 2.2 is very old).

        Comment

        Working...
        X