Urgent:RadTileView Position is changing

2 posts, 0 answers
  1. Anupam
    Anupam avatar
    6 posts
    Member since:
    Jul 2011

    Posted 13 Oct 2011 Link to this post

    We are using 6  RadTileView for our applications.But problem is that the position of the these radtileview changes in runtime.
    We want the defined position to be static based on the position number defined when the page loads.
    Please help us as soon as possible. The code for the same is below:

    <telerik:RadTileView Height="535"  MinimizedItemsPosition="Bottom" Foreground="White" FontFamily="Arial" Padding="0" MinimizedRowHeight="43" Grid.Row="1">
                          
                            <telerik:RadTileViewItem x:Name="Item1"  Position="3"  TileState="Restored"  Style="{StaticResource RadTileViewItemStyle1}" Foreground="#FF600531" FontWeight="Bold" FontSize="12" Padding="1,3">
                                <local:Item1FontWeight="Normal" />
                            </telerik:RadTileViewItem>

                            <telerik:RadTileViewItem x:Name="Item2" Position="2" TileState="Restored"  Style="{StaticResource RadTileViewItemStyle1}" Foreground="#FF600531" FontWeight="Bold" FontFamily="Arial" FontSize="12" Padding="1,3">
                                <local:Item2 FontWeight="Normal" />
                            </telerik:RadTileViewItem>

                            <telerik:RadTileViewItem x:Name="Item3" Position="1" TileState="Restored"   Style="{StaticResource RadTileViewItemStyle1}" Foreground="#FF600531" FontSize="12" FontWeight="Bold" Padding="1,3">
                                <local:Item3 FontWeight="Normal"  />
                            </telerik:RadTileViewItem>

                            <telerik:RadTileViewItem x:Name="Item4"  Position="4" TileState="Restored"  Style="{StaticResource RadTileViewItemStyle1}" Foreground="#FF600531" FontWeight="Bold" FontSize="12" Padding="1,3">
                                <local:Item4 FontWeight="Normal" />
                            </telerik:RadTileViewItem>

                            <telerik:RadTileViewItem  x:Name="Item5" Position="5" TileState="Restored" Header="Delegation"  Style="{StaticResource RadTileViewItemStyle1}" Foreground="#FF600531" FontWeight="Bold" FontSize="12" Padding="1,3">
                                <local:Item5 FontWeight="Normal" />
                            </telerik:RadTileViewItem>

                            <telerik:RadTileViewItem x:Name="Item6" Position="6" TileState="Restored"   Style="{StaticResource RadTileViewItemStyle1}" Foreground="#FF600531" FontWeight="Bold" FontSize="12" Padding="1,3">
                                <local:Item6 FontWeight="Normal"/>
                            </telerik:RadTileViewItem>

                          
                        </telerik:RadTileView>

  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 14 Oct 2011 Link to this post

    Hello Anupam,
    I guess the problem comes from the fact that the position numeration in the RadTileView starts from zero, not from one. In your case you'll have to subtract one from the positions of you items. Also if you want your items to keep their positions when they are maximized you should set the PreservePositionWhenMaximized property of the RadTileView to true.
    I've updated your project so you could examine it.
    If you have more questions please feel free to ask.

    Best wishes,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top