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

RadPane styling not applying when nested outside of DocumentHost

1 Answer 18 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Spurk
Top achievements
Rank 1
Spurk asked on 10 Oct 2012, 07:58 PM
In the scenario we are working with, we have a grid that displays some dynamic content, and then we have our 'help' using RadPane docked to the right.

I'm using RadDocking to host the RadSlitContainer which houses the RadPane (our help pane), but not able to get it adopt the styles I apply unless it is nested inside the DocumentHost element.

The issue is, My scroolviewer of dynamic content only seems to work with RadDocking if it is nested in the DocumentHost element, with the RadSplitContiner outside.  Reversing these produces ill results--no resizing when the dock is pinned, etc.

I've attached a screen grab of my heierachy...can someone point me in the right direction of how to properly set this up so that my dynamic content will dominate but then resize should the user pin the expanded dock on the right?

Is it normal behaviour for RadPanes to ignore assigned styles when outside of DocumentHost?

1 Answer, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 16 Oct 2012, 06:16 AM
Hello Sheldon,

I am not sure I understand the exact scenario you are trying to achieve but if you want to show a ScrollViewer for the content in the RadPane you should move the ScrollViewer inside the Pane, otherwise in some scenarios the ScrollViewer will not behave as expected.

Here is a sample code representing the described approach:
<telerik:RadSplitContainer>
    <telerik:RadPaneGroup>
        <telerik:RadPane Header="Pane 1">
            <ScrollViewer>
                <StackPanel>
                    <TextBlock Text="textblock" Height="100"/>
                    ...
                </StackPanel>
            </ScrollViewer>
        </telerik:RadPane>
    </telerik:RadPaneGroup>
</telerik:RadSplitContainer>

If this is not the scenario you are trying to achieve is it possible for you to open a support ticket and send us a runnable project that shows the issue you are facing.

All the best,
Vladi
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Docking
Asked by
Spurk
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Share this question
or