How to add button in HeaderSpan of SmartGWT
Posted
by
Anuroop
on Stack Overflow
See other posts from Stack Overflow
or by Anuroop
Published on 2012-03-02T14:02:22Z
Indexed on
2012/08/31
9:38 UTC
Read the original article
Hit count: 233
smartgwt
I want to add a button to the HeaderSpan of ListGrid in SmartGWT. I tried using the 'HeaderSpan.setAttribute((String property, Object value)) method but it did not work. Below is the example I tried with:-
ListGrid countryGrid = new ListGrid();
HeaderSpan ident = new HeaderSpan("Identification", new String[]{"countryCode", "countryName"});
ident.setAttribute("control", new Button("Test"));
countryGrid.setHeaderSpans(ident);
countryGrid.draw();
Please help!
© Stack Overflow or respective owner