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

Layout of childrens

3 Answers 68 Views
TileView
This is a migrated thread and some comments may be shown as answers.
ppti
Top achievements
Rank 1
ppti asked on 13 Sep 2011, 10:52 AM
The task is to change the layout of elements in the component (like iGoogle dashboard).
To do that, you need to override the TileViewPanel methods. 
The field of that type is not available in the TileView instance, but can be found in the visual tree.

Is there and option of substituting the TileViewPanel instance in the TileView visual tree for a custom class:
class MyTileViewPanel: TileViewPanel
{
// my methods
}

3 Answers, 1 is accepted

Sort by
0
Zarko
Telerik team
answered on 14 Sep 2011, 10:18 AM
Hello Ppti,
You can change the default panel of the RadTileView by inheriting the TileViewPanel (as you've suggested)
public class MyPanel : TileViewPanel
{
}

and then change the RadTileView ItemsPanel in its style
<Style TargetType="telerik:RadTileView">
     ...
    <Setter Property="ItemsPanel">
        <Setter.Value>
            <ItemsPanelTemplate>
                <local:MyPanel />
            </ItemsPanelTemplate>
        </Setter.Value>
    </Setter>
    <Setter Property="Template">
     ...
    </Setter>
</Style>
But I advice you not to do this if it's not really necessary.
Could you please explain us exactly what you want your TileView to look like and we'll see if it's achievable without overriding the panel?  

Greetings,
Zarko
the Telerik team

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

0
ppti
Top achievements
Rank 1
answered on 14 Sep 2011, 11:34 AM
mainly for creating an interface like in iGoogle (Dashboard)

  • movable panels
  • the option of collapsing and restoring panels
  • saving panels' layout

However, in TileView an element is either restored into a single cell or maximized.

It seems that RadDocking is the most suitable for our task. Unfortunately, RadDocking doesn't allow to make RadDocking nestings into RadDocking.
0
Zarko
Telerik team
answered on 17 Sep 2011, 03:13 PM
Hi Ppti,
Could you please examine the attached project and see if this is what you're looking for?
If you need further assistance please feel free to ask.

All the best,
Zarko
the Telerik team

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

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