TileView - Hiding Minimized TileViewItems

8 posts, 0 answers
  1. Karthik
    Karthik avatar
    2 posts
    Member since:
    Nov 2010

    Posted 15 Dec 2010 Link to this post

    Hello,

          I am using TileView in my application. A wonderful control!
     
         Additionally,  I would also like to hide the "minimized" tileviewitems to give more space to the "maximized" tileviewitem.
          The "minimized" list of tileviewitems need to be pinned to the right corner so that the user can unpin/dock it based on his/her preferences.
          
         Kindly provide a solution.

    Regards,
    Karthik.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 16 Dec 2010 Link to this post

    Hello Karthik,

     Currently there's no build in support for such behavior, but there are a couple of ways to achieve it:
    - You can use a button and set the MinimizedColumnWidth in its click handler.
    - Or you can use a grid splitter to dynamically adjust the MinimizedColumnWidth as shown here.
    If you have further questions feel free to ask.

    Best wishes,
    Zarko
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  3. DevCraft banner
  4. Joe
    Joe avatar
    4 posts
    Member since:
    Jun 2010

    Posted 23 Feb 2011 Link to this post

    Is it possible to make this work with a sliding panel instead of a grid splitter?   It would look very nice if the minimized items would "auto hide".
  5. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 01 Mar 2011 Link to this post

    Hi Joe,

     The RadTileView doesn't support that functionality out of the box but you can imitate it. For example you can use a RadExpander and change the MinimizedColumnWidth/MinimizedRowHeight in its Expand and Collapse events.
    Could you please examine the attached project and if you need further assistance don't hesitate to ask?

    Greetings,
    Zarko
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
  6. Rabin
    Rabin avatar
    6 posts
    Member since:
    Sep 2008

    Posted 11 May 2011 Link to this post

    Hi,

    I face the following problem after the 2011 update of telerik controls for silverlight.  I have a Tileview width tileviewitems and within one of the tileviewitem I'm showing different content when the user clicks on a button. Using a viewmodel that is databound to this tileview item I could before succesfully change to a new content by setting the fluidcontrol.content to my preferred content. However I'm not seeing the content if I not resize the complete silverlight window from small to large.

    Do you know what is going wrong?

    Regards,

    Rabin
  7. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 12 May 2011 Link to this post

    Hi Joe,
    Could you please give us some code snippets or a project that reproduces the issue, because I wasn't able to recreate it? I've attached the sample project that I use for testing so you could examine it.
    If you need further assistance feel free to ask.

    Kind regards,
    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. Murray
    Murray avatar
    121 posts
    Member since:
    Aug 2010

    Posted 06 Jul 2011 Link to this post

    Hi Zarko

    I am after similar functionality and wanted to look at your sample project. Unfortunately I get the following errors...

    Error 1 Cannot implicitly convert type 'System.Windows.GridLength' to 'double?' C:\Users\meaton\Desktop\Tile\TileViewWithExpander\TileViewWithExpander\MainPage.xaml.cs 40 14 TileViewWithExpander

    Error 2 Cannot implicitly convert type 'System.Windows.GridLength' to 'double?' C:\Users\meaton\Desktop\Tile\TileViewWithExpander\TileViewWithExpander\MainPage.xaml.cs 58 15 TileViewWithExpander


    I get this here:

    private void expandButton_Collapsed(object sender, RoutedEventArgs e)
            {
                Storyboard sb = new Storyboard();
     
                DoubleAnimation da = new DoubleAnimation();
                da.From = this.myTileView.MinimizedColumnWidth;
                da.To = 0;
                da.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 300));

    ....

    private void expandButton_Expanded(object sender, RoutedEventArgs e)
            {
                if (myTileView != null)
                {
                    Storyboard sb = new Storyboard();
     
                    DoubleAnimation da = new DoubleAnimation();
                    da.From = this.myTileView.MinimizedColumnWidth;
                    da.To = 250;
                    da.Duration = new Duration(new TimeSpan(0, 0, 0, 0, 300));

  9. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 08 Jul 2011 Link to this post

    Hi Murray,
    You're facing this problem because the example that I've provided in my previous post used the older dlls (before the RadTileView refactoring). In the new RadTileView (after Q1 2011 Beta) the MinimizedColumnWidth property is now of type GridLenght and that's why you can't directly convert it to double. And also I think that you won't need the animations and you could directly set the MinimizedColumnWidth.
    For further references could you please examine the attached project and see if it helps you.

    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