Insert Placeholder Item when Tile is maximized

3 posts, 0 answers
  1. Jesse
    Jesse avatar
    4 posts
    Member since:
    May 2014

    Posted 17 Jul 2014 Link to this post

    I am working on a component that guides the user through a series of steps in a workflow. If you refer to AllMinimized.PNG you can see how it currently looks when no TileViewItem is in the maximized state. Expanding the first item entitled "Strategy Selection" will result in the layout shown in TileSelected.PNG. All minimized tiles have shifted over one space to the left to take up the space left behind by expanding "Strategy Selection".

    Instead of having the tiles slide over, I would prefer to insert a new tile at the same location of the one that is currently open that says "You are Here" to indicate to the user where they are relative to the established workflow as they should be completed one at a time. I have two classes that represent RadTileViewItems that should be used as these placeholder tiles and ones that represent the actual content, however I'm having trouble setting up an appropriate Style Selector or Data Template Selector that can appropriately render the right appearance. I want the Placeholder items to remove the ability for the user to expand or select them in any way as they are visually there only to remind the user where they are in the workflow. I looked at this forum post which is accomplishing something similar: but styles are hard coded as opposed to utilizing some kind of style/template selector so that I can switch based on the underlying data context.
  2. Martin Ivanov
    Martin Ivanov avatar
    2425 posts

    Posted 22 Jul 2014 Link to this post

    Hi Jesse,

    In order to apply different styles for the different type of RadTileViewItems you can use the ItemContainerStyleSelector property of the RadTileView and implement custom style selector. Then you can define Styles for your items and depend on their type you can select the templates.

    For your convenience I prepared a sample project that demonstrate such approach. Please give it a try and let me know if it helps.

    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
  3. Jesse
    Jesse avatar
    4 posts
    Member since:
    May 2014

    Posted 23 Jul 2014 in reply to Martin Ivanov Link to this post

    Hi Martin. Thank you so much! This is exactly what I was looking for. Telerik customer service seriously is the best.
Back to Top