Screen Not Updating with Horizontal Orientation

3 posts, 0 answers
  1. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 28 Feb 2013 Link to this post

    I want tab controls to go vertically up the lefthand side.  But what is happening is space is always allocated in the grid for if it where horizontal and then the ViewModel name is shown in the Grid.  I have looked at there is nothing else being render in that column of hte control.  So I don't know how to refresh the screen after the tabcontrol has went verical and get rid of the viewmodel name being displayed.

    Here is XAML

    <Border Grid.Row="1" telerikControls:StyleManager.Theme="Expression_Dark">
                		<DropShadowEffect BlurRadius="10" Color="Black"/>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    <telerik:RadTabControl x:Name="tabDisplays" Grid.Column="0" TabOrientation="Horizontal"
                                           TabStripPlacement="Left" Align="Right"
                                           ItemsSource="{Binding Path=DisplayTabs}" SelectionChanged="RadTabControl_SelectionChanged_1">
                                <TextBlock Text="{Binding Name}" />
    Code behind
    this.DataContext = new MainWindowViewModel();
  2. Tina Stancheva
    Tina Stancheva avatar
    3298 posts

    Posted 05 Mar 2013 Link to this post

    Hi Christian,

    In order to display the proper content in the RadTabItems Content, you need to apply a ContentTemplate on the RadTabControl. The ContentTemplate defines a DataTemplate that controls how the business data will be visualized inside the content of each tab.

    Also I'm not sure if you need a horizontal or vertical alignment of the content of the tabs, but please have in mind that the TabOrientation property controls that behavior. When set to vertical, the RadTabControl will make sure to rotate the tabs to display their content horizontally.

    I attached a sample solution demonstrating how to setup your control per your requirements. Please have a look at it and let me know if I can further assist you.

    All the best,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
  4. heavywoody
    heavywoody avatar
    79 posts
    Member since:
    Oct 2009

    Posted 05 Mar 2013 Link to this post

    Thank you very much!  That did the trick!
Back to Top