Tile View Minimized - Need to show a Maximize Button

10 posts, 0 answers
  1. Madhu
    Madhu avatar
    30 posts
    Member since:
    May 2011

    Posted 08 Jun 2011 Link to this post

    Hi,

    We are using the Tileview in our project and when we minimize tiles, they line up on the right side, but the button which currently shows up is a restore down button (The double square button). We would like to display a single square button when tiles are minimized.

    Can you please tell us how to achieve this.

    Regards,
    Madhu
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 09 Jun 2011 Link to this post

    Hello Madhu,
    At the moment the RadTileViewItem can have only two different Maximize/Minimize icons - one for when the item is maximized and one for when it is minimized or restored. If you want to have a different icon for restored and minimized you'll have to change the style of the items dynamically. To edit any of this icons you'll have to edit the default template of the RadTileViewItem.
    For further references could you please examine the attached project and if you have more questions feel free to ask.

    All the best,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Madhu
    Madhu avatar
    30 posts
    Member since:
    May 2011

    Posted 22 Jun 2011 Link to this post

    Thanks Zarko, this worked fine for us. Another question - Is this possible for FluidControl as well?

    Regards,
    Madhu
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 23 Jun 2011 Link to this post

    Hello Madhu,
    Do you mean the RadFluidContentControl or some other control, because the RadFluidContentControl doesn't have any buttons and I'm not sure what exactly you are trying to do? I'd like to ask you to give us a little bit more information on the subject.

    Best wishes,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Madhu
    Madhu avatar
    30 posts
    Member since:
    May 2011

    Posted 24 Jun 2011 Link to this post

    Hi Zarko,

    Please ignore the previous question. We were using RadTileViewItem everywhere.

    However there is one more issue we are facing. In the sample project that you shared with us there is a code

    <telerik:RadToggleButton x:Name="MaximizeToggleButton" Command="tileView:TileViewCommands.ToggleTileState"
    Style="{StaticResource maximizeToggleStyle}" />

    We are using version 2011.1.427.1040.

    This line throws an error - Error 26 Type 'tileView:TileViewCommands' was not found. 

    Could you tell us what could be the issue.

    Regards,
    Madhu

  7. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 24 Jun 2011 Link to this post

    Hello Madhu,
    Could you please try to add this namespace and see if it helps:
    xmlns:tileView="clr-namespace:Telerik.Windows.Controls.TileView;assembly=Telerik.Windows.Controls.Navigation"
    If you have more questions feel free to ask.

    All the best,
    Zarko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Buddhika
    Buddhika avatar
    2 posts
    Member since:
    Jul 2011

    Posted 21 Jul 2011 Link to this post

    Hi Zarko,
    Is it possible to trigger "tileView:TileViewCommands.ToggleTileState" command outside the toggle button of the tile? for example when user click on somewhere on the tile (not only the toggle button).

    Thanks,
    Buddhika
  9. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 26 Jul 2011 Link to this post

    Hello Buddhika,
    Could you please explain what exactly do you mean by "Is it possible to trigger "tileView:TileViewCommands.ToggleTileState" command outside the toggle button " ? Do you want to trigger this command with another button or you want to change the tilestates by clicking on (for example) the content ?
    You can set this command to any button that is inside a RadTileViewItem and it should work fine and with a little bit of code behind and some events you can toggle the tilestates with almost anything.
    For further references could you please examine the attached project and if you have more questions please feel free to ask.

    Kind regards,
    Zarko
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

  10. Buddhika
    Buddhika avatar
    2 posts
    Member since:
    Jul 2011

    Posted 26 Jul 2011 Link to this post

    Hi Zarko,

    I just wanted to trigger the command on datagrid item click event, but I found "tileView:TileViewCommands.ToggleTileState" command is not a System.Windows.Input.IComman, that mean I cannot trigger the command using expression blend behaviors.

    If you have any idea how to achieve this goad, please mention, highly appreciate your earliest respond. 

    Thanks,
    Buddhika
     
  11. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 28 Jul 2011 Link to this post

    Hello Buddhika,
    You can try to handle the SelectionChanged event of the RadGridView and in there you can manually toggle the desired RadTileViewItems state like this:
    private void ToggleTileState(RadTileViewItem container)
    {
        if (container.TileState == TileViewItemState.Maximized)
        {
            container.TileState = TileViewItemState.Restored;
        }
        else
        {
            container.TileState = TileViewItemState.Maximized;
        }
    }
    If you have further questions feel free to ask,

    All the best,
    Zarko
    the Telerik team

    Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

Back to Top
DevCraft banner