Announcement

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

    DateTimeItem and DateItem ignores setShowDisabled()

    Hi,

    I've found a bug using DateTimeItem and it also applies to DateItem.
    When you set:
    Code:
    setShowDisabled(false)
    it has no affect on the appearance of the item. Input text item is changed to disabled(greyed out) along with the picker icon.
    I've set this setting before drawing this from.

    Standalone test case:
    Code:
    DynamicForm form = new DynamicForm();
    						
    TextItem itemName = new TextItem("name");
    itemName.setShowDisabled(false);
    itemName.setDefaultValue("test");
    						
    DateTimeItem itemDateStart = new DateTimeItem("date_start");
    itemDateStart.setShowDisabled(false);
    itemDateStart.setDefaultValue(new Date());
    					
    form.setFields(itemName, itemDateStart);
    						
    form.setDisabled(true);
    Tested with latest SmartGWT Nightly build on Firefox and Google Chrome.
    Should I report an issue on project site on google?
    Best regards.

    #2
    No answer?
    I get exact same problem

    Regards
    Alain

    Comment


      #3
      I am seeing the same problem with a regular textbox. SetShowDisabled(false) has no effect.

      Comment

      Working...
      X