Gridpanel sorting lost upon data rebinding

  1. #1

    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.

    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
  2. #2
    resolved by sorting my sql query.

Similar Threads

  1. [CLOSED] Reload the gridpanel after using gridfilter, the data lost
    By csssi_coolite in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 07, 2011, 11:27 AM
  2. gridpanel lost data after postback
    By sonnh11 in forum 1.x Help
    Replies: 2
    Last Post: Jun 28, 2011, 10:31 AM
  3. Replies: 0
    Last Post: Feb 10, 2011, 1:04 PM
  4. [CLOSED] GridPanel with dynamic columns lost values after reload data
    By asztern in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 21, 2010, 9:22 AM
  5. [FIXED] [V0.8.0] GridPanel data lost
    By methode in forum Bugs
    Replies: 3
    Last Post: Feb 14, 2009, 11:16 AM

Posting Permissions