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

TileView doens't size propertly after upgrade to Q1

19 Answers 167 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Joseph Gershgorin
Top achievements
Rank 1
Joseph Gershgorin asked on 23 Mar 2011, 07:32 PM
I have the TileView set up in the following fashion (with two more tiles in minimized mode):

<telerik:RadTileView x:Name="ChartsRadTileView"
                                         MinimizedColumnWidth="210"
                                         MinimizedItemsPosition="Right"
                                         MinimizedRowHeight="100"                                        
                                         MaximizeMode="One"
                                         TileStateChanged="ChartsRadTileView_TileStateChanged">
                        <telerik:RadTileViewItem Header="Sales - Q1 2010"
                                                 TileState="Maximized"
                                                 Loaded="SalesTileViewItem_Loaded"
                                                 x:Name="SalesTileViewItem">
                            <Controls1:RadFluidContentControl ContentChangeMode="Manual"
                                                              x:Name="SalesFluidContentControl">

In the Q3 2010 Release the Maximized tile would take full container width/height. Now the Maximized tile is the same as the MinimizedRowHeight. If I remove the MinimizedRowHeight attribute I get the following exception:

System.ArgumentException: Value cannot be inifinite or NaN.

This sizing was working fine in Q3, I'd appreciate if someone could look into this, thanks.

19 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 24 Mar 2011, 11:03 AM
Hi Joseph Gershgorin,

In the new version of the RadTileView the default value of the MinimizedRowHeight property is * (star) and it throws an exception if you try to measure the tileview with infinity and you haven't set this property to something else (Auto or explicit value). From your description I get that your RadTileView is inside a StackPanel or a ScrollViewer, if this is true you should set size to the tileview with the Height/Width properties or set the MinimizedRowHeight property(or change the StackPanel/ScrollViewer with Grid).
If you have further questions feel free to ask.

Best wishes,
Zarko
the Telerik team
0
Joseph Gershgorin
Top achievements
Rank 1
answered on 24 Mar 2011, 09:54 PM
Thanks! That was the issue, I removed a parent ScrollViewer, alwasy fun dealing with behavior changes. Thanks for the quick response.
0
Uwe Bach
Top achievements
Rank 1
answered on 26 Mar 2011, 07:16 AM
To tell the truth, I'm very disappointed.
I have the same problem.
Telerik is not following a good strategy to change behaviors
and code which was running before is accidently failing.
How should we handle this in huge projects with many telerik controls.
almost not realizable.

I EXPECT AFTER NEW VERSION SAME BEHAVIOR LIKE BEFORE!


0
Miro Miroslavov
Telerik team
answered on 28 Mar 2011, 08:08 AM
Hello Stefan Neuwirth,

 We're doing our best to keep everything running after updating our Controls. But in some cases we need to change the XAML style in order to move forward and make the things better. The Style now is much better and easier to maintain for us and change (create custom styles) for you. The old one was really out dated and hard to keep it that way.
Really sorry for the caused inconvenience. Please let us know if we can help you on the updating process.

Best wishes,

Miro Miroslavov
the Telerik team
0
Ray
Top achievements
Rank 1
answered on 11 Apr 2011, 11:39 PM
Not sure the reason changing the behavior, perhaps adding a scrollViewer within TileView.
I am also under impression that RadTileView has been rewritten.. 

The TileView breaks our application's behavior. The max/min button even has been changed too.
Hopefully, this wouldn't happen often in the future releases.
0
Rick Kauwen
Top achievements
Rank 1
answered on 14 Apr 2011, 03:08 PM
I have the same problem, but I had the minimizedColumnWidth and MinimizedRowHeight set, but through data binding. This also doesn't seem to work anymore. If I enter constant values it works as expected.
0
Petar Mladenov
Telerik team
answered on 14 Apr 2011, 04:08 PM
Hi Rick Kauwen,

Please examinethis blog post which you may find useful. These properties are of type GridLength. Feel free to ask if  you need more info.

Kind regards,
Petar Mladenov
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
Rick Kauwen
Top achievements
Rank 1
answered on 14 Apr 2011, 04:37 PM
Normally the GridLength type can bind to double values what I'm binding to. But even when i put a converter in between that converts a double to a GridLength the databinding is still not working, all panels go off screen.
0
Zarko
Telerik team
answered on 19 Apr 2011, 09:25 AM
Hi Rick Kauwen,

 Could you please examine the attached project and if you still have problems I'd like to ask you for some code snippets or a project that reproduces the issue?

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
0
Rick Kauwen
Top achievements
Rank 1
answered on 27 Apr 2011, 04:42 PM
It appears the problems are caused by old control templates.
0
Petar Mladenov
Telerik team
answered on 28 Apr 2011, 11:55 AM
Hello Rick Kauwen,

Let us know if you need any help or info with the new templates.

Regards,
Petar Mladenov
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
Rick Kauwen
Top achievements
Rank 1
answered on 05 May 2011, 06:29 PM
I still have a problem, and I think it is caused by a combination of binding the tile items and binding the maximized item. When the maximized item is not the first or last item in the collection the tileview starts to act strange and crashes when the bound maximized item is restored. I modified your sample to reproduce the problem. I will submit a support ticket with the project.
0
Zarko
Telerik team
answered on 06 May 2011, 09:57 AM
Hello Rick Kauwen,

 We answered your support ticket, but I'll post my answer here as well in case someone else encounter this problem:

 Thank you for the bug report - we'll look into in and I hope that the fix will be available in one the next internal releases. For now I can give you two workarounds - put the maximization in a Dispatcher like this:

this.Dispatcher.BeginInvoke(new Action(() =>
{
    MaximizedItem = col[1];
}));

or turn on the Virtualization like this:

<telerik:RadTileView x:Name="myTileView"
                MaximizeMode="ZeroOrOne"
                IsVirtualizing="True"
                ... />


I've updated your telerik account and if you have further questions 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
Aurelio Gómez
Top achievements
Rank 1
answered on 16 Jun 2011, 11:53 AM

Hello,

I have Rick Kauwen's same issue (or close).

Given the TileView:

<telerik:RadTileView DataContext="{Binding TileViewViewModels[4], Mode=OneWay}"
x:Name="WidgetsContainer4"
Style="{StaticResource TileViewStyle}"
ItemsSource="{Binding TileViewItemViewModels, Mode=OneWay}"
MinimizedColumnWidth="{Binding ElementName=MasterGrid, Path=DataContext.PanelManager.Stalls.MinimizedColumnWidth, Converter={StaticResource
DoubleToGridLengthConverter}}"
MinimizedRowHeight="{Binding ElementName=MasterGrid, Path=DataContext.PanelManager.Stalls.MinimizedRowHeight, Converter={StaticResource DoubleToGridLengthConverter}}"
MinimizedItemsPosition="{Binding ElementName=MasterGrid, Path=DataContext.PanelManager.Stalls.MinimizedItemsPosition, Converter={StaticResource MinimizedItemsPositionToTelerikMinimizedItemsPositionConverter}}"
MaximizedItem="{Binding MaximizedItem, Mode=TwoWay}" /> 

I have the problem:

1. TileView is empty.
2. Two items are added to TileViewItemViewModels.
3. Second TileViewItem is maximized via ToggleState button.
4. TileViewItemViewModels is cleared due to an external reason (TileViewItemViewModels.Clear())
5. TileViewItemViewModels is added two new TileViewItemViewModel.
6. MaximizedItem is set to TileViewItemViewModels[1] on TileViewViewModel (this.MaximizedItem = this.TileViewItemViewModels[1]).
 Mind that this time the MaximizedItem is set via ViewModel, not by clicking on the ToggleState button.
7. Due to step 6, The TileView is on an invalid state. Only 1 TileViewItem is shown (the maximized one), the other one (the minimized one) goes missing.
8. If the maximized one is restored, I can see a gap taking 50% of the TileView. The other 50% of the TileView is taken by the just restored TileViewItem.

However, on step 6, setting the first TileViewItemViewModel as maximized does work.

A fix as suggested is not feasible as most logic about the Maximized Item is handled on the ViewModel.

Your help is welcome.

Thank you,

0
Aurelio Gómez
Top achievements
Rank 1
answered on 16 Jun 2011, 12:19 PM
PD: Just tried with IsVirtualizing="True" and the issue seems to be solved. Nice!
0
Zarko
Telerik team
answered on 20 Jun 2011, 08:45 AM
Hi Aurelio Gómez,
Could you please tell us which dll version are you using?

Greetings,
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
Aurelio Gómez
Top achievements
Rank 1
answered on 20 Jun 2011, 12:04 PM
Hello,

Version is 2011.1.419.1040.

Regards,
0
Zarko
Telerik team
answered on 20 Jun 2011, 02:44 PM
Hi Aurelio Gómez,
Thank you for the information. I'd like to ask you one more thing - could you please download the latest internal build(2011.1.613) and see if your issue is fixed there?

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
Scott
Top achievements
Rank 1
answered on 08 Feb 2012, 09:14 PM
Setting the IsVirtuaizing worked for me too.
Tags
TileView
Asked by
Joseph Gershgorin
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Joseph Gershgorin
Top achievements
Rank 1
Uwe Bach
Top achievements
Rank 1
Miro Miroslavov
Telerik team
Ray
Top achievements
Rank 1
Rick Kauwen
Top achievements
Rank 1
Petar Mladenov
Telerik team
Aurelio Gómez
Top achievements
Rank 1
Scott
Top achievements
Rank 1
Share this question
or