RadPane Tab Scrolling with Custom Headers

0 Answers 25 Views
Docking
Johnathan
Top achievements
Rank 1
Johnathan asked on 05 Oct 2023, 02:14 PM

I am trying to get the RadPane tabs to scroll when overflowed, but it isn't working. I followed the example here, but it still does not scroll when enough tabs are made visible that exceed the visible width of the tab space. I am using a User Control for the tab header content instead of the standard String.

<telerik:RadDocking.DocumentHost>
  <telerik:RadSplitContainer Orientation="Vertical">
    <!-- Main Content -->
      <telerik:RadPaneGroup x:Name="PaneGroup1" 
                            ScrollViewer.HorizontalScrollBarVisibility="Auto"
                            DropDownDisplayMode="Visible">
        <!-- Schedule -->
        <telerik:RadPane CanUserClose="False" x:Name="RadPane_ScheduleItems" IsHidden="True"
                         telerik:RadDocking.SerializationTag="ScheduleItems.HeaderObj">
          <telerik:RadPane.Header>
            <uc:RadPaneHeader x:Name="RadPaneHeader_ScheduleItems"
                              Header="Schedule Items" />
          </telerik:RadPane.Header>
            <uc:ScheduleGridView x:Name="ScheduleItems" />
        </telerik:RadPane>

Tabs before and after are attached.

Stenly
Telerik team
commented on 09 Oct 2023, 12:50 PM

Could you share a bit more information on the setup of your application? More specifically, the custom UserControl that is set to the Header property of the RadPane element? This way, I can test this on my end in a sample application and see if I can suggest an alternative approach for this scenario.
Johnathan
Top achievements
Rank 1
commented on 16 Oct 2023, 11:49 AM

Attached is the user control used for the header property.
Stenly
Telerik team
commented on 16 Oct 2023, 03:31 PM

Hello Johnathan,

I tried reproducing this behavior using the UserControl that you provided, however, I was unsuccessful. On my end, a scroll viewer appears when the number of pane instances exceeds the visible width.

I have attached the sample application that I used for testing, so, could you give it a try?

No answers yet. Maybe you can help?

Tags
Docking
Asked by
Johnathan
Top achievements
Rank 1
Share this question
or