Hi,
I have a ListGrid configured like this:
...and I've overridden createRecordComponent() to draw various clickable icons in one of the grid cells depending on the record on that row.
The ListGrid is bound to a data source (GWT-RPC).
This all works fine on initial load and if I scroll the list up and down. However, if I manually refresh the contents of the list by calling
SmartGWT refreshes the records in the grid but doesn't call createRecordComponent() to update the custom cell elements. This is a problem because some rows may have changed and now need different icons drawn.
Is there some way of forcing createRecordComponent() to be called again on the entire table? Or is invalidateCache() not the right way to force a reload of the table contents from the server?
Apologies if this has been covered before but search on this forum appears to be entirely broken:
I have a ListGrid configured like this:
Code:
grid.setRecordComponentPoolingMode(RecordComponentPoolingMode.VIEWPORT); grid.setShowRecordComponents(true); grid.setShowRecordComponentsByCell(true);
The ListGrid is bound to a data source (GWT-RPC).
This all works fine on initial load and if I scroll the list up and down. However, if I manually refresh the contents of the list by calling
Code:
grid.invalidateCache()
Is there some way of forcing createRecordComponent() to be called again on the entire table? Or is invalidateCache() not the right way to force a reload of the table contents from the server?
Apologies if this has been covered before but search on this forum appears to be entirely broken:
Code:
The following words are either very common, too long, or too short and were not included in your search : createRecordComponent
Comment