This is a migrated thread and some comments may be shown as answers.

Listview with horizontal scroll view

6 Answers 860 Views
AppBuilder in-browser client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Suma
Top achievements
Rank 1
Suma asked on 24 Oct 2013, 07:29 AM
Hi,

can we do listview with horizontal scroll bar? i checked this link http://demos.kendoui.com/mobile/scrollview/index.html#/ but in this link they are using <div> but i want <ul> four itesm have to be show at a time when scroll another four items have to show. horizontal scroll i want can any one give the sample code.

with regards
sumalatha. 

6 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Oct 2013, 03:13 PM
Hello Sumalatha,

If you do not use data-role=page attribute on the page elements, their contents will not stretch to fit the widget width, and several items will be visible at once.

Regards,
Steve
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Priya
Top achievements
Rank 1
answered on 25 Oct 2013, 06:59 AM
Hi,

Steve thank you its working

with regards
sumalatha
0
David
Top achievements
Rank 1
answered on 31 Aug 2014, 11:36 PM
this works if the scrollview content is there or manually generated.  but when I tried to use the template and datasource, it seems always forced one item per page.  is there a way to pass in data attribute to tell it not to do that?  thx
0
Kaloyan
Telerik team
answered on 03 Sep 2014, 03:56 PM
Hi David,

Thank you for contacting our support services.

If I am not misunderstanding you, this should be achievable by using a custom template. Here is an example, showing the implementation details. Please, correct me if this is not the case with some additional details and I will assist you further.

I hope it helps.

Regards,
Kaloyan
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
Fares
Top achievements
Rank 1
answered on 26 Nov 2014, 07:21 AM
Hello,

I have the same problem as David.

I am trying to display images horizontally inside a scrollview. I dont want to display X images per page, I want them like a listview, just horizontally. X items are visible, then i have to scroll.

When i try to add the images statically, it works fine:

<div data-role="scrollview">
<img id="img1" .../>
<img id="img2" .../>
          .
 .
 .
</div>

however, when i try to do the same using databinding, it display one image at a time. the generated html has each image inside a  div class="km-virtual-page", which is the reason its not working i guess.

Any help is appreciated.

Thank you.   
0
Petyo
Telerik team
answered on 28 Nov 2014, 11:24 AM
Hello Fares,

you can use the items per page configuration option to display multiple images in the same page.

Regards,
Petyo
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
AppBuilder in-browser client
Asked by
Suma
Top achievements
Rank 1
Answers by
Steve
Telerik team
Priya
Top achievements
Rank 1
David
Top achievements
Rank 1
Kaloyan
Telerik team
Fares
Top achievements
Rank 1
Petyo
Telerik team
Share this question
or