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

RadListView and columns

1 Answer 221 Views
ListView
This is a migrated thread and some comments may be shown as answers.
geppo
Top achievements
Rank 1
geppo asked on 20 May 2015, 04:21 PM

Hi! I'm trying to test your ListView with responsive behavior. All works very fine!

I have seen that the number of columns changes automatically with the width of the browser window.

Now I have only a question ...

 Can I limit the number of columns at runtime or by a config value? Db Value? Or Runtime user Value?

This is very important to use this very good control within ecommerce application...

For example I have the need to limit the number of column at 3 ... indépendamment  their width

 Or there is another control to do a list with image and text from db ... that can be configured in a multicolumn panel?

Merci beaucoup!

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 25 May 2015, 09:02 AM
Hello,

Since there is no column concept in RadListView, the content of the control will be displayed based on the templates that you are using and the width of the parent container. The only way to define the number of columns is to manually calculate the width of the items and the parent container, so only a limited number of items could fit on a single line within that container. 

For example, if your wrapping DIV element is with width 400px and you need to have 2 columns, you could set the width of the items to 200px. When you work with RadListView you need to follow the basic HTML practices for defining specific layouts.

Hope this helps.


Regards,
Konstantin Dikov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ListView
Asked by
geppo
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or