Hybrid View

  1. #1
    Ext JS Premium Member
    Join Date
    May 2008
    Posts
    372
    Vote Rating
    4
    ttbgwt is on a distinguished road

      0  

    Default Unanswered: infinite editing grid

    Unanswered: infinite editing grid


    I have an infinite grid and enable cell editing and allow user to change cell values and then click a save button when they are ready to persist the changes. This works ok if they click that save button before they scroll and page to another page.

    How can I save their unsaved changes when those edited rows scroll off the screen, so that when they eventually do click save, all of their edits will be persisted?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,000
    Answers
    666
    Vote Rating
    456
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You might have to create something using store.beforeprefetch to save any changed before the next fetch.

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    16
    Answers
    1
    Vote Rating
    1
    adavis2 is on a distinguished road

      0  

    Default


    Is there some documentation which discusses this issue? I am having the same problem, but this is the first time I have seen it mentioned. I would like to use some of the more advanced Ext JS features, but there is a lot more trial and error involved than I would like. Is there an information source that I'm missing which could save me some time?

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,088
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    The store only contains the records which are currently in view and when you scroll the grid, new records replace the existing ones. Hence any changes made in the previous set of records is lost. the easy way would be to sync the store before loading new records.

    you can take a look at the API Docs and the examples. that might help. Also, reading comments left by users (if available) in the API Docs helps to know of bugs or some tricks.