This is a migrated thread and some comments may be shown as answers.

TileView - Hiding Minimized TileViewItems

7 Answers 111 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Karthik
Top achievements
Rank 1
Karthik asked on 15 Dec 2010, 07:45 AM
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.

7 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 16 Dec 2010, 03:22 PM
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
0
Joe
Top achievements
Rank 1
answered on 23 Feb 2011, 11:51 PM
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".
0
Zarko
Telerik team
answered on 01 Mar 2011, 10:48 AM
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!
0
Rabin
Top achievements
Rank 1
answered on 11 May 2011, 05:40 PM
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
0
Zarko
Telerik team
answered on 12 May 2011, 03:51 PM
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
0
Murray
Top achievements
Rank 2
answered on 06 Jul 2011, 11:13 PM
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));

0
Zarko
Telerik team
answered on 08 Jul 2011, 02:11 PM
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!

Tags
TileView
Asked by
Karthik
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Joe
Top achievements
Rank 1
Rabin
Top achievements
Rank 1
Murray
Top achievements
Rank 2
Share this question
or