TileView doens't size propertly after upgrade to Q1

20 posts, 0 answers
  1. Joseph Gershgorin
    Joseph Gershgorin avatar
    28 posts
    Member since:
    Aug 2009

    Posted 23 Mar 2011 Link to this post

    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.
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 24 Mar 2011 Link to this post

    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
  3. DevCraft banner
  4. Joseph Gershgorin
    Joseph Gershgorin avatar
    28 posts
    Member since:
    Aug 2009

    Posted 24 Mar 2011 Link to this post

    Thanks! That was the issue, I removed a parent ScrollViewer, alwasy fun dealing with behavior changes. Thanks for the quick response.
  5. Uwe Bach
    Uwe Bach avatar
    8 posts
    Member since:
    Nov 2008

    Posted 26 Mar 2011 Link to this post

    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!


  6. Miro Miroslavov
    Admin
    Miro Miroslavov avatar
    588 posts

    Posted 28 Mar 2011 Link to this post

    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
  7. Ray
    Ray avatar
    2 posts
    Member since:
    Jan 2011

    Posted 11 Apr 2011 Link to this post

    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.
  8. Rick Kauwen
    Rick Kauwen avatar
    17 posts
    Member since:
    Apr 2006

    Posted 14 Apr 2011 Link to this post

    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.
  9. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 14 Apr 2011 Link to this post

    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
  10. Rick Kauwen
    Rick Kauwen avatar
    17 posts
    Member since:
    Apr 2006

    Posted 14 Apr 2011 Link to this post

    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.
  11. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 19 Apr 2011 Link to this post

    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
  12. Rick Kauwen
    Rick Kauwen avatar
    17 posts
    Member since:
    Apr 2006

    Posted 27 Apr 2011 Link to this post

    It appears the problems are caused by old control templates.
  13. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 28 Apr 2011 Link to this post

    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
  14. Rick Kauwen
    Rick Kauwen avatar
    17 posts
    Member since:
    Apr 2006

    Posted 05 May 2011 Link to this post

    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.
  15. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 06 May 2011 Link to this post

    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
  16. Aurelio Gómez
    Aurelio Gómez avatar
    12 posts
    Member since:
    Oct 2009

    Posted 16 Jun 2011 Link to this post

    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,

  17. Aurelio Gómez
    Aurelio Gómez avatar
    12 posts
    Member since:
    Oct 2009

    Posted 16 Jun 2011 Link to this post

    PD: Just tried with IsVirtualizing="True" and the issue seems to be solved. Nice!
  18. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 20 Jun 2011 Link to this post

    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
  19. Aurelio Gómez
    Aurelio Gómez avatar
    12 posts
    Member since:
    Oct 2009

    Posted 20 Jun 2011 Link to this post

    Hello,

    Version is 2011.1.419.1040.

    Regards,
  20. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 20 Jun 2011 Link to this post

    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
  21. Scott
    Scott avatar
    13 posts
    Member since:
    Jul 2012

    Posted 08 Feb 2012 Link to this post

    Setting the IsVirtuaizing worked for me too.
Back to Top
DevCraft banner