Inmethod DataGrid without column headers?
Hi, Is there any way to render a Inmethod DataGrid without column headers? For wicket's standard DataTable there's a HeaderlessColumn but I haven't been able to find an equivalent column type for DataGrid. cheers Marcin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Inmethod DataGrid without column headers?
I might be wrong, but... Datagrid extends AbstractGrid which has public void addHeaderToolbar(AbstractHeaderToolbar toolbar) { addToolbar(toolbar, headerToolbarContainer); } simply overriding that in your Datagrid public void addHeaderToolbar(AbstractHeaderToolbar toolbar) { //nothing } doesn't do what you want? Cristi Manole On Fri, May 29, 2009 at 12:37 PM, Marcin Palka marcin.pa...@gmail.comwrote: Hi, Is there any way to render a Inmethod DataGrid without column headers? For wicket's standard DataTable there's a HeaderlessColumn but I haven't been able to find an equivalent column type for DataGrid. cheers Marcin - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Cristi Manole Nova Creator Software www.novacreator.com
Re: Inmethod DataGrid without column headers?
Thanks for reply. I already gave this one a try. It does not seem to be called at all. I searched through inmethod grid sources and it seems that it really isn't called at all. My search shown only one occurence of addHeaderToolbar method which is its declaration in AbstractDataGrid class. This is my code: DataGrid grid = new DataGrid(usersGrid, usersDS, columns) { @Override public void onItemSelectionChanged(IModel item, boolean newValue) { super.onItemSelectionChanged(item, newValue); selectedUser = (User) item.getObject(); } @Override protected void onRowPopulated(WebMarkupContainer rowComponent) { super.onRowPopulated(rowComponent); rowComponent.add(new AjaxEventBehavior(ondblclick) { @Override protected void onEvent(AjaxRequestTarget target) { showModalUserEditor(ComponentViewMode.EDIT); } }); } @Override public void addHeaderToolbar(AbstractHeaderToolbar toolbar) { logger.info(addHeaderToolbar); //super.addHeaderToolbar(toolbar); } @Override public void addTopToolbar(AbstractToolbar toolbar) { logger.info(addTopToolbard); //super.addTopToolbar(toolbar); } }; Marcin -- View this message in context: http://www.nabble.com/Inmethod-DataGrid-without-column-headers--tp23782672p23784978.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org