Announcement

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

    RangeDateItem set field length

    I am trying to use a RangeDateItem using SmartGWT 5.1 in a form and need to set the width size of the Text field for the From and To. I tried to use something like this:

    TextItem ti = new TextItem();
    Ti.setWidth(15);
    ((DateItem)myDateRangeItem.getFromField()).setTextFieldProperties(ti);

    But this throws an error. What is the appropriate way to accomplish this?

    Thank you

    #2
    Hi sithallt,

    use myDateRangeItem.setAutoChildProperties("fromField", ti);

    Best regards
    Blama

    Comment

    Working...
    X