Jun 01, 2011, 2:46 AM
Gridpanel sorting lost upon data rebinding
Hi,
i want to refresh my gridpanel with updated data from my database after creating a new record or update.
Each time i update my database table, i would also call the store and respecify the datasource and rebind it.
i want to refresh my gridpanel with updated data from my database after creating a new record or update.
Each time i update my database table, i would also call the store and respecify the datasource and rebind it.
this.store.datasource = datatable;
this.sotre.databind();
However, i notices that the gridpanel loses its sorting if i do this. If i click on the "last page" button then "first page" button again, the sorting retuns to normal. Any idea how i can fix this?
Last edited by Daniil; Jun 01, 2011 at 6:57 AM.
Reason: Please use [CODE] tags