:: Forum >>
loading.gif for v2?
Hi all
With virtual data loading in v2.0 beta1 I understand that, whatever the number of rows in the dataset, the time taken to for the grid to display is approx the same. This suggests that there should no longer be a requirement for a "data loading ... please wait" type message and indeed, the file 'loading.gif' is not present in v2.0 beta1. However, if server side database retrieval is lengthy, it would still be nice to display this kind of message in an empty grid.
An approach I'm taking is to
1.define a grid (i.e. create a new AW.Grid.Extended and define all headers, columns options etc..)
2. 'fill it' with an empty array of cells (i.e. cells = new Array(); obj.setCellText(cells)) and write this empty grid to the screen. This is so that a grid appears on the screen while,
3. do lengthy database retrieval and then populate cells with the real data and refresh the grid: i.e. obj.setCellText(cells); obj.refresh();
During step 2. it would be good to be able to use the 'loading.gif' message from v1. Although I've not used v1 I've seen from the forum that the following could be used:
obj.setStatusProperty("code", "loading");
...
document.write(obj);
although this no longer seems to apply in v2.
So what I would like to understand is how can 'loading.gif' be applied in v2?
Many thanks
Will
Will
Monday, October 24, 2005
I am planning to add 'loading...' message/gif for beta2. Simply did not have time to finish it yet.
Alex (ActiveWidgets)
Monday, October 24, 2005
This topic is archived.
Back to support forum
Forum search