RadListView and columns

2 posts, 0 answers
  1. geppo
    geppo avatar
    4 posts
    Member since:
    Dec 2014

    Posted 20 May 2015 Link to this post

    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!

     

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1796 posts

    Posted 25 May 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top