RadRibbobTab control resize on change of application size

3 posts, 0 answers
  1. Shilpa
    Shilpa avatar
    2 posts
    Member since:
    Dec 2013

    Posted 15 May 2014 Link to this post

    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. Kiril Vandov
    Admin
    Kiril Vandov avatar
    324 posts

    Posted 19 May 2014 Link to this post

    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.
     
  3. DevCraft banner
  4. Shilpa
    Shilpa avatar
    2 posts
    Member since:
    Dec 2013

    Posted 20 May 2014 in reply to Kiril Vandov Link to this post

    Hi Kiril,

    Thank you this fixed the tab header issue.

    Thanks,
    Shilpa
Back to Top