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

Problem in adding tabs dynamically and placing its content in the item template

1 Answer 63 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
surya prayaga
Top achievements
Rank 1
surya prayaga asked on 09 Feb 2010, 03:27 PM
Hi friends,

We r facing a problem in binding the data to the telerik tab control panel and adding the list to the the item content. Here is the code what we have written in xaml.

<telerikNavigation:RadTabControl  x:Name="rFacilitiesTab" Width="870" Height="Auto" HorizontalAlignment="Left" Grid.Row="0" Grid.Column="0"
                VerticalAlignment="Top"
                DropDownDisplayMode="Visible"
                Background="White"
                Foreground="Black"
                BorderThickness="1"
                BorderBrush="#FFCDD0D1"
                BackgroundVisibility="Collapsed"  
                >
              <ItemsControl x:Name="lstTabItems" ItemsSource="{Binding SurveyResultsList}">
                                            <ItemsControl.ItemTemplate>
                                                <DataTemplate>

--Here we are adding a text block binding with the property name.but its not working
<TextBlock Text="{Binding MpsrxProgram.SiteConfigRecomm, Mode=TwoWay}" FontSize="11" Margin="5,5,5,5" ></TextBlock>
                                        
                                                </DataTemplate>
   </ItemsControl.ItemTemplate>
</ItemsControl >
            </telerikNavigation:RadTabControl>


please let us know how to resolve it asap.

Regards
SRA team

1 Answer, 1 is accepted

Sort by
0
Ivan
Telerik team
answered on 12 Feb 2010, 02:14 PM
Hello Surya,

Thank you for contacting us.

Please preview the attached example.

We hope this information will help you.

Regards,
Ivan
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.
Tags
TabControl
Asked by
surya prayaga
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Share this question
or