Gurus,
I have a ListGrid which has the HeaderSpans:
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.
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"}));
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"
}
Comment