Tabcontrol will trim/omit items in drop down

2 posts, 0 answers
  1. Muds
    Muds avatar
    17 posts
    Member since:
    Jan 2015

    Posted 20 Mar 2015 Link to this post


    we are using telerik tab control for wpf, with dropdown visible option. but problem is that It trims the items text if we  don't provide a width. or if e provide a width it completely omits one item.
    please have a look at attached snapshots

                            ItemsSource="{Binding Tabs}"
                            SelectedItem="{Binding SelectedType}"
                            ContentTemplate="{StaticResource AddTabContentTemplate}"
                            ItemTemplate="{StaticResource AddTabTemplate}"
                            Margin="4" />

    <DataTemplate x:Key="AddTabTemplate">
               <Label Content="{Binding TypeName}" Width="150" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  2. Martin Ivanov
    Martin Ivanov avatar
    1452 posts

    Posted 23 Mar 2015 Link to this post

    Hello Mudit,

    When you doesn't set the Width of the RadTabItems the tab control's drop down will give them as much space as they need. On other hand if you set the items' Width - like in the code snippet from your reply - the content of the drop down will be clipped if the text's width is bigger then the item's Width.

    About the missing item, I was not able to reproduce such behavior. Can you please take a look at the attached project and modify it to reproduce the issue? This will allow me to test it on my side and investigate what is causing this behavior.

    Thank you for any help you can provide.


    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top