Announcement

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

    SmartGWT release 4.1 power question

    We recently upgraded from 2.x to 4.x and one of the new restrictions I recall was that you cannot reuse ListGridField(s) across multiple ListGrid(s). Is this correct?

    If so, can you have multiple instances of ListGridField(s) with the same name and title across different ListGrid(s)?

    ListGrid A
    ListGrid B

    ListGridField a = ListGridField("a", "A")
    ListGridField b = ListGridField("a", "A")

    A.setFields(a)
    B.setFields(b)

    Is this ok?

    #2
    It was actually never valid to share fields and would always lead to problems (in some cases, just subtle problems). The difference in the new version is that we actually warn about it.

    Field names must be unique within a single ListGrid, but do not have to be unique application-wide.

    Comment

    Working...
    X