Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Mysterious presentation of ListGrid in TabSet

$
0
0
Hello,

I am using SNAPSHOT_v9.1d_2014-02-07/Pro Deployment 2014-02-07 and Firefox 26.0.

I appreciate if someone would give me a hint concerning a layout mystery.

Each Tab of a TabSet contains a ListGrid. All ListGrids are bound to the same datasource.
For each ListGrid I set the width of the ListGridFields and hide context menus of two fields:
Code:

for (final ListGrid l : examLists) {
        l.setDataSource (ds);

        ListGridField f = l.getExpansionField ();
        f.setWidth (30);
        f = l.getField ("hasChanges");
        f.setWidth (10);
        f.setShowDefaultContextMenu (false);
        f = l.getField ("prfgStatus");
        f.setWidth (40);
        f.setAlign (Alignment.CENTER);
        f.setShowDefaultContextMenu (false);
        f = l.getField ("prfggruppeKurzform");
        f.setWidth (60);
        f.setAlign (Alignment.LEFT);
        f = l.getField ("prfggruppeName");
        f.setWidth (230);
        f.setAlign (Alignment.LEFT);
        f = l.getField ("numAnm");
        f.setWidth (50);
        f.setAlign (Alignment.CENTER);
}

The headers of the ListGrids are displayed correctly except for ListGrid in the first Tab (see attachment).
The presentation of the first ListGrid does not correspond to its configuration. The triangle of the context menu is shown but the menu cannot be called.
I checked the width of ListGridFields of the first ListGrid by calling getWidth. The values are set correctly.

Where's my mistake?
Andreas

Attached Images
File Type: png ListGrid1.png (4.2 KB)
File Type: png ListGrid2.png (4.3 KB)

Viewing all articles
Browse latest Browse all 4756

Trending Articles