Announcement

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

    value field and display field in same grid

    I would like to show the value field and the display field next to each other in the grid, but when I try it like below:
    Code:
    ListGridField pk = new ListGridField(getPrimaryKeyFieldName(), language.BenchmarkDealerGroupEditWidgetLocation());
    pk.setWidth("80%");
    pk.setValueField(getPrimaryKeyFieldName());
    pk.setOptionDataSource(DealerGroupDS.getInstance());
    pk.setDisplayField("name");
    
    ListGridField pk2 = new ListGridField(getPrimaryKeyFieldName(), language.BenchmarkDealerGroupEditWidgetLocation());
    pk2.setDisplayField(getPrimaryKeyFieldName());
    pk2.setWidth("20%");
    (value is the primary key and display is name)
    Both columns show the name.

    How can I show the same field name twice in a grid?
Working...
X