1) v8.3p_2013-02-09/PowerEdition Deployment
2) Chrome 26.0.1410.65, Firefox 18.0.2
Issue:
I've implemented a ListGrid that displays an icon and some textual data for each row.
Since the back-end data is frequently updated, I've implemented the follow code to refresh the ListGrid every 5 seconds:
This code works great for the refresh, however, every 5 seconds the icon flickers upon refresh. In Chrome it's subtle; in Firefox it's extreme.
Here is how I'm defining the icon file in my datasource file:
I've also set some additional parameters on the field:
Is there any elegant way to reduce or avoid the re-draw/flicker of the icon on every grid refresh, especially since the icon data is *not* being updated on the backend, just the textual data.
My current thoughts are to specifically copy over only the desired values on each grid refresh but that seems like a lot of code and potential for bug issues when everything works very cleanly right now.
Thanks!
2) Chrome 26.0.1410.65, Firefox 18.0.2
Issue:
I've implemented a ListGrid that displays an icon and some textual data for each row.
Since the back-end data is frequently updated, I've implemented the follow code to refresh the ListGrid every 5 seconds:
Code:
_gridDeviceLayout.getGrid().getDataSource() .fetchData(_gridDeviceLayout.getGrid().getCriteria(), new DSCallback() { public void execute(DSResponse response, Object rawData, DSRequest request) { if (response.getData().length > 0) { request.setOperationType(DSOperationType.UPDATE); String selectedState = _gridDeviceLayout.getGrid().getSelectedState(); _gridDeviceLayout.getGrid().getDataSource().updateCaches(response, request); _gridDeviceLayout.getGrid().setSelectedState(selectedState); } } }, request);
Here is how I'm defining the icon file in my datasource file:
Code:
<field name="icon" type="imageFile" title=" " showFileInline="true" maxFileSize="1048576" />
Code:
ListGridField iconGridField = _gridLayout.getGrid().getField("icon"); iconGridField.setWidth(40); iconGridField.setCanEdit(false); iconGridField.setCanFilter(false); iconGridField.setImageHeight(36); iconGridField.setImageWidth(36); iconGridField.setAlign(Alignment.CENTER);
My current thoughts are to specifically copy over only the desired values on each grid refresh but that seems like a lot of code and potential for bug issues when everything works very cleanly right now.
Thanks!
Comment