Malcolm van Raalte
Posts: 0
Joined: Thu Mar 13, 2014 5:58 pm

Carousel questions

#1
I put a carousel on a page and have it bound to an array of objects returned by a database service. When the service returns just one item swiping on the carousel causes the item to disappear. Another swipe causes the item to show for a sub-second and then disappear. How can I get the item to not swipe out?

#2
Is there any way to set the height of the carousel to "auto"?

#3
Inside the carousel item I have placed an HTML control. I would like to bind the HTML control to the data that comes back for the Carousel control. What is the best way to render the HTML based on the data?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Carousel questions

Hello!

1) It's a bug in 1.2 and lower libraries version (we'll fix it in the next release - mid April). Please try 2.0 libraries version.

2) No, but you can set any size in editor or in runtime using JS.

3) Could you clarify in more details what are you trying to do and what exactly doesn't work?

Malcolm van Raalte
Posts: 0
Joined: Thu Mar 13, 2014 5:58 pm

Carousel questions

Given the response to #2 I guess I can't use carousel. I would need to have content in the carousel item that has a dynamic height.

So that leaves me with the task of rolling my own carousel control. What I'll need to do is this:

  • fetch data from a Data Service

  • pass the data in to an HTML control

  • display the data using my own HTML

  • implement swipe left/right to view subsets of the data

    Are there any guides for such a task?

Malcolm van Raalte
Posts: 0
Joined: Thu Mar 13, 2014 5:58 pm

Carousel questions

#1 is a minimally helpful response. I presume you know how to switch to the 2.0 libraries. I don't, off-hand. By including quick instructions on how to do so you could save me the time of having to figure it out. Would be so helpful...

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Carousel questions

You can do that in App Settings--External resources
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Carousel questions

[quote:]Are there any guides for such a task? [/quote] no unfortunately. You can create and implement your own carousel.

Return to “Issues”