Announcement

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

    ListGrid - setHeaderSpans - how to get the fieldTitle

    Gurus,
    I have a ListGrid which has the HeaderSpans:

    Code:
    listGrid.setFields(new ListGridField("countryName", "Name", 150),
    	             new ListGridField("countryCode", "Code", 100));
    			
    listGrid.setHeaderSpans(new HeaderSpan("Country Details", new String[]{"countryName", "countryCode"}));
    When I iterate over the listGrid for column names, I get "Name" and "Code" but I even want the other headerTitle which is "Country Details", I would appreciate if someone can throw some ideas.

    Code:
    ListGridField[] columnNames = listGrid.getFields();
    for (int i = 0; i < columnNames.length; i++) {
     ListGridField listGridField = columnNames[i];
     System.out.println(listGridField.getTitle()); // gets "Name" and "Code"
    }
    Last edited by contact77; 10 Nov 2010, 06:33.

    #2
    I see the same issue in print preview too, saw the same in smartgwt showcase(not printing/exporting the complete header, 2 rows). any ideas?

    http://www.smartclient.com/smartgwt/...e_header_spans

    Comment

    Working...
    X