Tile view header disappearing after maximize and minimizing

8 posts, 1 answers
  1. Nitin
    Nitin avatar
    3 posts
    Member since:
    Jun 2011

    Posted 31 Aug 2011 Link to this post

    Hi,

    We are using Telerik tileview control to display a presentation. We have ~10 images and all the images are visible initially in Tileview, with header text.

    When I Maximize one of the image and minimize it again, the header text for the minimized images (placed in Minimized Row/Column) outside the current view disappeared. 

    Can you please suggest a way to fix this issue?
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 01 Sep 2011 Link to this post

    Hello Nitin,
    Could you please tell us if you're using the UI Virtualization and if you're defining your RadTileViewItems in XAML (or add them in code behind but you add RadTileViewItems, not business objects)? Because in that case you will lose the RadTileViewItems headers when you virtualize an item. If this is your case I'll advise you to either turn off the virtualization (I don't think that it'll make any difference for 10-20 items) or use business items and bind the header and content.
    If you have more questions feel free to ask.

    Kind regards,
    Zarko
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. DevCraft banner
  4. Nitin
    Nitin avatar
    3 posts
    Member since:
    Jun 2011

    Posted 01 Sep 2011 Link to this post

    Hi,

    I am not sure what you mean by UI virtualization, but I have added the image files in my silverlight project and all the RadTileViewItems are added in XAML. I am not setting or updating any properties in the code behind. I do not have any business objects.

    Can you please elaborate a bit on UI virtualization and also tell me how to turn it off ?

    Regards,
    -Nitin

  5. Answer
    Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 02 Sep 2011 Link to this post

    Hi Nitin,
    By UI Virtualization I meant if you've set the IsVirtualized property of the RadTileView to True.
    I've created a simple application that have 10 RadTileViewItems with an image inside and you can see that if you haven't turn on the virtualization everything is fine, but if you turn it on and maximize an item you'll lose the headers of some of the other items.
    Could you please examine the attached project and see if it helps you. If this doesn't help with your problem I'd like to ask you to send us some code snippets or better a project that reproduces the issue.

    Kind regards,
    Zarko
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  6. Greg Duffield
    Greg Duffield avatar
    38 posts
    Member since:
    Feb 2006

    Posted 21 Sep 2011 Link to this post

    I am seeing a similar issue when I have got 12 Tiles and with virtulisation on if you scroll up then down the headers will all be empty, from your last response you seem to acknowledge that this was happening but you have not said how this can be prevented as otherwise does it not make the virtuisation option a bit hampered?

    Thanks

    Greg

  7. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 22 Sep 2011 Link to this post

    Hi Greg Duffield,
    The Virtualization of the RadTileView is meant to be used with ItemsSource, Bindings, DataTemplates and etc. and not with XAML defined items. That's why if you try to use it with XAML defined items you'll lose the Headers. If you use it with binding and DataTemplate you should not have any problems.
    Also you may try to turn off the Virtualization and see how the application behaves, because I'm not sure it will make any difference if you have only 12 items.
    I've attached a sample project for you to examine.

    Greetings,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  8. Greg Duffield
    Greg Duffield avatar
    38 posts
    Member since:
    Feb 2006

    Posted 22 Sep 2011 Link to this post

    Xarko.

    Thanks for this it all makes sense and is obvious when you think about it.

    Excellent support, thanks.

    Greg
  9. Nitin
    Nitin avatar
    3 posts
    Member since:
    Jun 2011

    Posted 22 Sep 2011 Link to this post

    I have tested both the scenarios ("defining items in XAML and setting virtualization to false" and "use a datasource to bind the items") and both options seems to work fine. Thanks for you help.

    -Nitin
Back to Top
DevCraft banner