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

Urgent:RadTileView Position is changing

1 Answer 73 Views
TileView
This is a migrated thread and some comments may be shown as answers.
Anupam
Top achievements
Rank 1
Anupam asked on 13 Oct 2011, 03:46 PM
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>

1 Answer, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 14 Oct 2011, 04:09 PM
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 >>

Tags
TileView
Asked by
Anupam
Top achievements
Rank 1
Answers by
Zarko
Telerik team
Share this question
or