【发布时间】:2012-03-21 00:43:53
【问题描述】:
我想在 SmartGWT 的 ListGrid 的 HeaderSpan 中添加一个按钮。我尝试使用 'HeaderSpan.setAttribute((String property, Object value)) 方法,但它不起作用。以下是我尝试过的示例:-
ListGrid countryGrid = new ListGrid();
HeaderSpan ident = new HeaderSpan("Identification", new String[]{"countryCode", "countryName"});
ident.setAttribute("control", new Button("Test"));
countryGrid.setHeaderSpans(ident);
countryGrid.draw();
请帮忙!
【问题讨论】:
标签: smartgwt