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

Tabcontrol will trim/omit items in drop down

1 Answer 68 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Muds
Top achievements
Rank 1
Muds asked on 20 Mar 2015, 02:49 PM
Hi

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

<telerik:RadTabControl
                        Grid.Row="0"
                        DropDownDisplayMode="Visible"
                        ScrollMode="Item"
                        ItemsSource="{Binding Tabs}"
                        IsSynchronizedWithCurrentItem="True"
                        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"/>
</DataTemplate>

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 23 Mar 2015, 08:04 AM
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.

Regards,
Martin
Telerik
 

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.

 
Tags
TabControl
Asked by
Muds
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or