Announcement

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

    TextItem Styling (no border)

    i'm using SmartGWT - 10-10-10 Build. I want to change border for TextItem in a DynamicForm. I need to make it look like a plain static text field in readonly mode.

    I tried :

    setCellStyle("readOnly");
    setTextBoxStyle("readOnly");

    .readOnly{
    color:gray;
    border:0px;
    }

    I searched all the forums. Please suggest me some tips.

    -raghu

    #2
    Using constructor="StaticTextItem" in the formfield definition in place of "TextItem" will make the formitem look like static text. It will have no box or border around it. It will have no background behind it. Yet, it can take a value from a datasource and even take an optionDataSource and do the lookaside trick with an ID field and NAME field with a customized dataSource with joins and stuff.

    This is 3 years late, but somebody else might benefit from finding it.

    I would like to give back for all the help I get from these forums.

    Rick

    Comment

    Working...
    X