-
11 Feb 2009 3:44 AM #1
GridView refresh row
GridView refresh row
Hi.
I need that a single row in a grid gets refreshed (and then its renderer is called).
How it is possible to do this?
The GridView does not provides a method to refresh a single row, and I do not need to refresh the whole grid...
Is there anyway of calling the renderer of a single row in the grid?
PS: on ext-js, this was possible by calling gridView.refreshRow(rowIndex)
Thanks for helping,
Michel.
-
11 Feb 2009 5:27 AM #2
Override GridView to make refreshRow public or just update your model in that specific row
-
11 Feb 2009 6:48 AM #3
Hi. Thanks very much for your response.
So if I just update the model in one specific row, then the Renderer will be automatically called, which means I don't need to call explicitly the refresh method?
-
15 Jun 2011 11:28 PM #4
Dear micgala,
If you got the solution pls share your override program to us. We are also facing the same problem.
-
17 Jun 2011 12:03 AM #5
Hi, I created a jsni method, like this:
So, for refreshing a row on a Grid, pass the gridView of that grid, and the row.PHP Code:private native void refreshRow(GridView view, int row) /*-{
view.@com.extjs.gxt.ui.client.widget.grid.GridView::refreshRow(I)(row);
}-*/;
Regards,
Michel.
-
21 Jun 2011 6:34 AM #6
@micgala, why don't you just update model and store? model.set(x,y), store.update(model). Then grid row gets rerendered or am I wrong?
-
21 Jun 2011 6:41 AM #7
Hi. Well, yes... if you change the model, then I guess that is acceptable.
But in my case, I was not changing the model, and I still wanted the row to be refreshed.
Thus, it would make not much sense to call store.update... a simple refresh in the grid would make more sense, thus, I used the refresh method...
But this was long ago... I don't exactly remember my requirements back then :-)
-
21 Jun 2011 11:01 AM #8


Reply With Quote
Sorry!