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

TileView RowsCount and ColumnsCount with window resize problem

1 Answer 97 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Kalle
Top achievements
Rank 1
Kalle asked on 13 Nov 2013, 11:27 AM
Hi!

I'm using Telerik controls for WPF version Q1 2013 (have not been able to get latest licensed version yet... hopefully we get that soon).

I have a problem with setting TileView's RowsCount and ColumnsCount to certain value and then resizing the window. Looks like tiles are cropped from their right side if window width gets smaller and from bottom if window height gets smaller. Is there a way to prevent this?

Here's a screenshot with TileView's column count set to 4. I only have one tile in this example and tile's right side is cropped long before window size reaches the tile... And If I set column count to 6 the tile is cropped even sooner.

Column count 4 example #1

Column count 4 example #2

It is ok for the tile to be cropped like this but only if the width of the window reaches the tile. I hope you understand what I mean by this.

Br,

Kalle

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 14 Nov 2013, 12:06 PM
Hello Kalle,
Could you please tell us what properties you've set to your RadTileViewItems because this should not happen in the default scenarios? For example if you have something like this:
<telerik:RadTileView ColumnsCount="4">
    <telerik:RadTileViewItem />
    ...
</telerik:RadTileView>
the issue is not present but if you've set the width property of the item:
<telerik:RadTileView ColumnsCount="4">
    <telerik:RadTileViewItem Width="200" />
    ...
</telerik:RadTileView>
you may experience this problem. If you want to set absolute sizes to your tileView items you should use their the RestoredHeight/RestoredHeight properties:
<telerik:RadTileViewItem RestoredWidth="200" RestoredHeight="100" />
or the ColumnWidth/RowHeight of the tileView:
<telerik:RadTileView ColumnsCount="4" RowHeight="100" ColumnWidth="200">
I hope I was able to help you and if you have more questions please feel free to ask. 

Regards,
Zarko
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
TileView
Asked by
Kalle
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or