<
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
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.
Zarko
the Telerik team
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!
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,
the Telerik team
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.
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
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
Let us know if you need any help or info with the new templates.
Regards,
Petar Mladenov
the Telerik team
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.
Zarko
the Telerik team
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,
Could you please tell us which dll version are you using?
Greetings,
Zarko
the Telerik team
Version is 2011.1.419.1040.
Regards,
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