HTML5 Data Bindings Support Product Page

Answered

Apply data loader gif to each record of a repeat region

Asked 20 Sep 2013 14:59:02
1
has this question
20 Sep 2013 14:59:02 Andre Bender posted:
Can a data loader gif be applied to each record of a repeat region or just to all of them?

Replies

Replied 24 Sep 2013 06:59:58
24 Sep 2013 06:59:58 Miroslav Zografski replied:
Hello Andre,

You like to have a Loading image shown before loading the data? Then you can use the Behaviours in Data Bindings Dialogue. Set up your loading gif in a div element, style it accordingly your requirements and then Edit the dataset or while creating a new one Click on Behaviours button in the lower part of the dialogue. This will bring up the Behaviours Connector Dialog.
  1. In the top right-hand side list select "Before the call for data is executed".
  2. In the left-hand side list browse to find Show-Hide Elements and select it.
  3. Click on the right pointing arrow in the middle and this will open up a new Dialogue to set which element you like to show ( make sure that your loader gif container div is hidden with CSS Property and has an id or class attribute attached).
  4. Select your Div and click on Show Button then press OK. Now when data Bindings will execute Show on your loading div just before it attempts to grab data.
  5. Now you need to Hide the div when data is retrieved. To do so repeat the above steps but now select "When data is successfully loaded or updated" Event and instead of Show set Hide for your loading div in Show-Hide Elements Behaviour.


  6. That's all.
    Regards.
Replied 30 Sep 2013 10:01:52
30 Sep 2013 10:01:52 Andre Bender replied:
This seems only to work whith the hole dataset, means with all records at once with one single loader for them all.

How can I attach a loader to each single record?

Is there a way to bind a fade to hide/show behaviour?
Replied 30 Sep 2013 12:18:34
30 Sep 2013 12:18:34 Miroslav Zografski replied:
Hello Andre,

The records are not loaded one by one. They are returned together and parsed on the page. The above descript ( sorry not to mention it ) is for the whole current set and not for the each record. That show/hide behaviour is a default DW one and it does not support animations.

Regards.
Replied 30 Sep 2013 12:34:12
30 Sep 2013 12:34:12 Andre Bender replied:
I see, thanks.
It would be great to have a individual load for each record, that looks much better.
An animation behaviour extension would be great to have. What about implementing it together with Isotope?

Reply to this topic