Something like ColumnsCount="Auto"

2 posts, 0 answers
  1. Mike Shilkov
    Mike Shilkov avatar
    30 posts
    Member since:
    Apr 2010

    Posted 22 Feb 2012 Link to this post

    I'm using RadTileView with ColumnWidth set to "Auto", and each item has a fixed width.
    Is it possible to make RadTileView itself to decide how many columns fits into current control width? E.g. on small laptop, user would see 4 columns, while on a big screen another user would see 8 columns.

    Thank you.
  2. Zarko
    Zarko avatar
    755 posts

    Posted 27 Feb 2012 Link to this post

    There's no straightforward way to achieve this, but if you know the width of you items you can handle the SizeChanged event of the RadTileView, make some calculations there and set the desired ColumnCount.
    I've attached a sample project that snows two ways to do this so could you please examine it and if you have more questions feel free to ask.

    Kind regards,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
Back to Top