I think I'm doing it in the bad way. Should I get my data source with DataSource myDataSource = getGrid().getDefaultModel();
And after delete the deleted row with something like myDataSource.delete(id); And what next? Can you give me an example please? Thanks -----Original Message----- From: Matej Knopp [mailto:matej.kn...@gmail.com] Sent: mardi 13 octobre 2009 12:21 To: users@wicket.apache.org Subject: Re: One inmethod datagrid question Why do you call getGrid().setDefaultModelObject() again? You should keep the same data source just let it output different data. -Matej 2009/10/13 François Jeunesse <francois.jeune...@a-syst.com>: > Hi, > > > > First, thanks Matej for you job! > > Here is my question: > > I use the editable datagrid example, and I have added one column to permit > deleting functionality. > > When one user click on delete a row, I modify my datasource, and call the > getGrid().setDefaultModelObject(new DataSource ) function. > > This work fine, if I click in the paging navigation on page 2 and next, come > back to the 1st, my datagrid is refreshed. > > > > How can I force the refresh directly without click in the navigation paging? > > PS: Not working with update() function. > > > > Thanks for help please. > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org