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

Something like ColumnsCount="Auto"

1 Answer 38 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Mike Shilkov
Top achievements
Rank 1
Mike Shilkov asked on 22 Feb 2012, 05:10 PM
Hi!
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.

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 27 Feb 2012, 09:42 AM
Hi,
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,
Zarko
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
TileView
Asked by
Mike Shilkov
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or