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

RadRibbobTab control resize on change of application size

2 Answers 125 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Shilpa
Top achievements
Rank 1
Shilpa asked on 15 May 2014, 09:34 AM
Hi,

I am working on SIlverlight application using RadControls_for_Silverlight5_2013_2_0724_Dev version. We have a dynamic tab being populated based on the access level we have, using RadRibbonTab control. With in each tab we have RadRibbonGroup .

Currently we have a issue when we change the app size, say by dragging the window. The text in the tab gets cropped off on dragging the window. Is there a way where we can keep the full text visible based on the window resize? Please see the screen shot for the cropped tab on dragging the screen. 

2 Answers, 1 is accepted

Sort by
0
Kiril Vandov
Telerik team
answered on 19 May 2014, 08:57 AM
Hello Shilpa,

The default behavior for the RadRibbonView when there is not enough space for its Tab headers is to start clipping them. The default minimal width of the Tabs is set to 45.  You could change that behavior by overwriting the default ItemsPanel, like follows:
<telerik:RadRibbonView>
    <telerik:RadRibbonView.ItemsPanel>
        <ItemsPanelTemplate>
            <telerikRibbonViewPrimitives:RibbonTabStripPanel MinTabWidth="200" />
        </ItemsPanelTemplate>
    </telerik:RadRibbonView.ItemsPanel>
...
By setting the MinTabWidth property to the value you desire will force the RadRibbonTabs to take at least 200px if their DesiredSize.Width is equal or larger to that value. However if the RadRibbonTabs DesiredSize.Width is lets say 50px they will not be stretched that size.

Kind regards,
Kiril Vandov
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
Shilpa
Top achievements
Rank 1
answered on 20 May 2014, 05:26 AM
Hi Kiril,

Thank you this fixed the tab header issue.

Thanks,
Shilpa
Tags
RibbonView and RibbonWindow
Asked by
Shilpa
Top achievements
Rank 1
Answers by
Kiril Vandov
Telerik team
Shilpa
Top achievements
Rank 1
Share this question
or