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

Listview does not maintain height

1 Answer 308 Views
ListView
This is a migrated thread and some comments may be shown as answers.
Terrell
Top achievements
Rank 1
Terrell asked on 05 Apr 2019, 03:19 AM

 I have a gridview that displays images using your example at: https://demos.telerik.com/kendo-ui/listview/index.

However I don't want the control to expand but I want it to scroll vertically as new items are added to it. How can I accomplish this?

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 09 Apr 2019, 12:42 PM
Hello Terrell,

The ListView is a template component and it is up to the developer to define what will be rendered for each item. With that in mind, you could add fixed height for the wrapping element of the ListView and render each item in inline element or render them side by side. You could then add fixed width to the wrapping element and set its overflow to "scroll", which should result in the vertical scrolling that you are requesting.

Please give this a try and let us know if any further questions arise.


Regards,
Konstantin Dikov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ListView
Asked by
Terrell
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or