TileView Maximizing issue

7 posts, 0 answers
  1. Tarang
    Tarang avatar
    3 posts
    Member since:
    Dec 2013

    Posted 03 Dec 2013 Link to this post

    Hi,
    I am using radtileview. When I set the property of  MaximizeMode of radtileview to "ZeroOrOne" than my image gets expanded but it has a fixed size as shown in attachment.
    So, is there any way so that I can expand my image or stretch image size to tileview item size. As shown in attachment.

    Thanks,
    Tarang
  2. Ira
    Ira avatar
    2 posts
    Member since:
    Dec 2013

    Posted 04 Dec 2013 Link to this post

    Hi,

    I am also facing the same issue. Can I get some help on this.
    Any help would be appreciated.

    Thanks,
    Ira
  3. DevCraft banner
  4. Tarang
    Tarang avatar
    3 posts
    Member since:
    Dec 2013

    Posted 05 Dec 2013 Link to this post

    Hi,

    I got the solution for streching the image.
    Ira, we just need to add an additional property for Stretch="Stretch.UniformToFill".
    But I am getting problem when maximizing the image. Can we enable scrolls from code behind as I am binding radtileviewitems from code behind so is there any way that I can get scrolls when maximizing the image in radtileviewitem.
    Reply Please.

    Thanks,
    Tarang
  5. Milena
    Admin
    Milena avatar
    203 posts

    Posted 06 Dec 2013 Link to this post

    Hi Tarang,

    I am glad that you found a solution for stretching the image.

    However, please consider one more option - using different sizes of the images for the different states of the TileViewItems (displaying smaller image when the item is minimized and a larger one when - maximized). You can achieve this by using the RadFluidContentControl in RadTileView to change the content of the RadTileViewItems depending on their state. For your convenience I implemented this approach in the attached project. You can read more about the usage of RadFluidContentControl in RadTileView in this tutorial.

    As for enabling the ScrollViewer you can use the built-in functionality in the RadTileView. More about that you can read in our article - Enable the Horizontal and Vertical ScrollBars. There you can learn more about the properties that control the scrolling behavior which you can set in XAML or in code-behind. If you need to have a ScrollViewer inside the RadTileViewItems then you should implement your own logic for this.

    I hope this information helps and don't hesitate to write back if you have any further questions.

    Regards,
    Milena
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    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 >>
  6. Ira
    Ira avatar
    2 posts
    Member since:
    Dec 2013

    Posted 09 Dec 2013 Link to this post

    Hi Milena,

    Thanks for the reply.

    Thanks,
    Ira
  7. Tarang
    Tarang avatar
    3 posts
    Member since:
    Dec 2013

    Posted 09 Dec 2013 Link to this post

    Hi Milena,

    Thanks for the reply. I succeeded to get scrollbars on radtileview but I am facing one more problem here.
    My functionality is that I drag items from radtileview and drop them into radtreeview. Previously whenever I click on item of radtileview than it get selected but after putting scrollview radtileviewitem is not selected and the only way to select that item is by clicking on its header.
    So is there any other way to select radtileview item on clicking at the portion where scrollbars are present on that particular items.

    Thanks,
    Tarang
  8. Milena
    Admin
    Milena avatar
    203 posts

    Posted 12 Dec 2013 Link to this post

    Hi Tarang,

    When the ScrollViewer is used inside the content of the RadTileViewItem, the click events are handled by the ScrollViewer, rather than the RadTileViewItem. This is why clicking inside the content of the RadTileViewItem will not trigger the selection logic. You can find more information about focus handling in SL here.

    In order to overcome this behavior you can set the IsTabStop property of the ScrollViewer to False. By doing so the click events will be handled by the RadTileViewItem - instead of the ScrollViewer.

    I'm attaching a sample project that demonstrates this approach. 

    I hope this information helps.


    Regards,
    Milena
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    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 >>
Back to Top
DevCraft banner