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

Using the ItemsSource and ItemTemplate to add PanelGroups to a RadSplitContainer in a RadDock

2 Answers 194 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Tau Sick
Top achievements
Rank 1
Tau Sick asked on 29 Jan 2010, 09:46 AM

I can’t get this to work. I can bind items to a listbox in the same way without problem…

 

 

 

<telerik:RadDocking DataContext="{Binding Source={StaticResource CustomerViewModel}}">

 

 

 

 

    <telerik:RadSplitContainer ItemsSource="{Binding Path=Customers}">

 

 

 

 

        <telerik:RadSplitContainer.ItemTemplate>

 

 

 

 

            <DataTemplate>

 

 

 

 

                <telerik:RadPaneGroup >

 

 

 

 

                    <telerik:RadPane Header="{Binding Path=CustomerName}">

 

 

 

 

                    </telerik:RadPane>

 

 

 

 

                </telerik:RadPaneGroup>

 

 

 

 

            </DataTemplate>

 

 

 

 

        </telerik:RadSplitContainer.ItemTemplate>

 

 

 

 

    </telerik:RadSplitContainer>

 

 

 

 

</telerik:RadDocking>

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 29 Jan 2010, 11:45 AM
Hi Tau Sick,

RadDocking does not support ItemsSource. The property is there because we inherit from ItemsControl. This is needed because Silverlight will not create fields for elements with x:Name attribute (Silverlight limitation) and we share the same codebase with RadControls for Silverlight.

Sincerely yours,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Tau Sick
Top achievements
Rank 1
answered on 29 Jan 2010, 12:39 PM
Thank's - I'll do it in codebehind.

If you could put some kind of warning in there it would have saved me some time.
Tags
Docking
Asked by
Tau Sick
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Tau Sick
Top achievements
Rank 1
Share this question
or