1. #1
    Sencha User rabelanger's Avatar
    Join Date
    Jan 2010
    Location
    Montreal
    Posts
    15
    Vote Rating
    1
    rabelanger is on a distinguished road

      0  

    Default Unanswered: How do I update the rowbody of a grid when a record/model is updated?

    Unanswered: How do I update the rowbody of a grid when a record/model is updated?


    Hi,

    I currently have a grid which a rowbody, using the getAdditionalData. In the rowbody, I show data about the record/model and its association. When I set a value on a record, only the row is updated but not the rowbody.

    How would can I do that?

    I can listen to my update event on my store and update my rowbody, but how can refresh the the rowbody using the getAdditionalData method defined in my features.

    Rafael

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    Try:
    PHP Code:
    view.refreshNode(view.indexOf(updatedRecord)); 

  3. #3
    Sencha User rabelanger's Avatar
    Join Date
    Jan 2010
    Location
    Montreal
    Posts
    15
    Vote Rating
    1
    rabelanger is on a distinguished road

      0  

    Default


    For some reason refreshNode doesn't refresh the row. It does recall getAddtionalData where the data is updated but the dom stays as is. If I call view.refresh(), the row gets properly updated. I would like to avoid refreshing the whole grid..

    Thanks redraid
    rafael

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