-
10 May 2012 1:59 PM #1
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
-
11 May 2012 1:02 AM #2
Try:
PHP Code:view.refreshNode(view.indexOf(updatedRecord));
-
11 May 2012 7:28 AM #3
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 redraidrafael


Reply With Quote