PDA

View Full Version : Add a button to groupingView



jakovdt
1 Dec 2011, 4:06 AM
Hi,
I'm searching for a way to add a button in a groupingView (something like a RowAction in ext js)
I need to add a button in the opposite side of rowExpander button.

view.setGroupRenderer(new GridGroupRenderer() { public String render(GroupColumnData data) {
String f = cm.getColumnById(data.field).getHeader();
String l = data.models.size() == 1 ? "Item" : "Items";
BeanModel w = data.models.get(0).get("workflow");
return f + ": " +((Workflow)w.getBean()).getDescription();
}
});

Any suggestion?
Thanks

J