Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Design-time captions/text showing before rest service data binding invoked.

Why does my components design-time captions/text show briefly before the the rest service data binding kicks in when a page is loaded? Is there a way to prevent this?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Design-time captions/text showing before rest service data binding invoked.

Hi - can you show where exactly this happens? Some code example or screenshot would help.

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Design-time captions/text showing before rest service data binding invoked.

It is a pretty straight forward page with a list list component and labels in a grid component. The Labels default Text is shown in the attached image as in design-time. This page uses a rest service to list the data.

When navigating to the page in runtime it shows the default text in all the labels for a split second and then changes to the values in the rest service.

Image

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Design-time captions/text showing before rest service data binding invoked.

Try to tick "Render all pages in one HTML file":
Image

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Design-time captions/text showing before rest service data binding invoked.

I have tried this. It makes no difference, unfortunately.

This problem is also present in the appery.io android testing app.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Design-time captions/text showing before rest service data binding invoked.

So you are getting this in desktop browser and on a Android device respectively?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Design-time captions/text showing before rest service data binding invoked.

Can you give us a public link to your app, so we can test this?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Design-time captions/text showing before rest service data binding invoked.

It's not really a problem -- this is how the browser works. The page is loaded into the DOM with default labels. Then a service is invoked and updates the labels. There is a short delay between that and what's why you see the previous labels. You could try clearing the previous data.

Dupdroid
Posts: 0
Joined: Sat Mar 30, 2013 9:07 pm

Design-time captions/text showing before rest service data binding invoked.

So everyone apps do this when using a rest service? Is there an example perhaps of the suggested workaround "clearing the previous data"?

Return to “Issues”