1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    25
    Answers
    2
    Vote Rating
    4
    caleywoods is on a distinguished road

      0  

    Default Unanswered: GridPanel rowediting update

    Unanswered: GridPanel rowediting update


    I have a GridPanel which I've setup to use RowEditing. You can double click a row and it brings up the row editor just fine. I've placed a listener on the Grid for 'edit' that fires when the row is updated.

    My question is, when I click the 'update' button on the row editing interface I was expecting something to be done with the store (a write or sync or something).

    In my edit event I recoded it to fire a .sync() on the store. This uses the configured writer in the stores proxy but I've noticed when the request is sent it contains all the records in my store and not just the single updated record.

    I've also noticed that even though the row gets marked as dirty when editing it, store.getUpdatedRecords() returns [] (empty). What is the expected behavior and what are you supposed to do to get your single updated row sent over to the server?

  2. #2
    Sencha User
    Join Date
    Dec 2009
    Location
    Enschede, The Netherlands
    Posts
    327
    Answers
    16
    Vote Rating
    13
    flanders will become famous soon enough

      0  

    Default


    How do you load the store? Are you maybe loading it in such a way that the records are registered as new? In other words, do the records have record.phantom = true?

    This would explain no updated records, but all records being sent by the Store

    Edit:
    > My question is, when I click the 'update' button on the row editing interface I was expecting something to be done with the store (a write or sync or something)
    You can set the store to autoSave: true - This would change behaviour to what you expect

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi