TileView RowsCount and ColumnsCount with window resize problem

2 posts, 0 answers
  1. Kalle
    Kalle avatar
    26 posts
    Member since:
    Feb 2013

    Posted 13 Nov 2013 Link to this post

    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
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 14 Nov 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top