How do you set the SplitterPosition?

7 posts, 0 answers
  1. Michael
    Michael avatar
    23 posts
    Member since:
    Mar 2009

    Posted 24 Mar 2009 Link to this post

    How do you set the SplitterPosition for the 

    RadSplitContainer?

    Actuall, let me add a little more to the question.

    I want to have a 2 pane split container. The left container I want to be a treeview that spans all rows of the grid element. The Right hand container I want to have multiple rows and colums to deal with some controls.

    I didn't have any luck with pointing the left radpanelgroup to column 0 and the right radpanelgroup to column 1...the split container always remains in the same cell. I hope I am explaining this well............

    Thanks!

  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 25 Mar 2009 Link to this post

    Hello Michael,

    You shouldn't use this property - it is set automatically by the docking control depending on where is the SplitContainer at the specified moment. As I am not sure what do you want to do, could you please provide some code or detailed description? If I understand correct you are trying to use the SplitContainer as a grid. This is not supported. You can achieve similar effect by using nested split containers (not the same, but similar). Here is an example:
    <UserControl x:Class="SilverlightApplication.Page" 
            xmlns="http://schemas.microsoft.com/client/2007" 
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
            xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"
        <Grid x:Name="rootVisual"
            <radDock:RadDocking> 
                <radDock:RadSplitContainer Orientation="Horizontal"
                    <radDock:RadPaneGroup> 
                        <radDock:RadPane Header="Group1"
                            <TextBlock TextWrapping="Wrap" Text="Tree View comes here..." /> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                    <radDock:RadSplitContainer Orientation="Vertical"
                        <radDock:RadPaneGroup> 
                            <radDock:RadPane Header="Group2"
                                <TextBlock TextWrapping="Wrap" Text="Row 1" /> 
                            </radDock:RadPane> 
                        </radDock:RadPaneGroup> 
                        <radDock:RadPaneGroup> 
                            <radDock:RadPane Header="Group3"
                                <TextBlock TextWrapping="Wrap" Text="Row 2" /> 
                            </radDock:RadPane> 
                        </radDock:RadPaneGroup> 
                        <radDock:RadPaneGroup> 
                            <radDock:RadPane Header="Group4"
                                <TextBlock TextWrapping="Wrap" Text="Row 3" /> 
                            </radDock:RadPane> 
                        </radDock:RadPaneGroup> 
                    </radDock:RadSplitContainer> 
                </radDock:RadSplitContainer> 
            </radDock:RadDocking> 
        </Grid> 
    </UserControl> 
     
     

    Let us know if this works for you.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. DevCraft banner
  4. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 16 Jan 2010 Link to this post

    Hello Miroslav Nedyalkov ,

    If you still monitor this thread, allow me to ask this: If I need to open new pages from the treeview or any other pane from those, where it should open, by another meaning ... should there be a Frame or Page object to hold the loaded pages, if so how is this achievable?

    Best regards
    Waleed
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 18 Jan 2010 Link to this post

    Hi Waleed,

    Unfortunately I cannot clearly understand what you are asking about. Could you please give us some more details about your requirement?

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  6. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 18 Jan 2010 Link to this post

    Hello Miroslav Nedyalkov,

    I want to implement the page navigation in my new SL application and I read in many forms a strong recommendation to follow MS-SL3 approach, so I decided to start implementing that ....

    and my question is this in this post; I understood that the implementation require another area (radpane) to hold the loaded pages, is this correct ... if so can the loaded page have a transition effects .... and how close is this to MS-SL3 ?

    I hope you got my point !!

    Best regards,
    Waleed
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 21 Jan 2010 Link to this post

    Hello Waleed,

     Please find the attached example that demonstrates how to accomplish this task.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  8. Waleed Seada
    Waleed Seada avatar
    241 posts
    Member since:
    May 2006

    Posted 21 Jan 2010 Link to this post

    Miroslav Nedyalkov,

    You make my day, perfect answer just to the point.
    You actually answered many other questions in my head, I guess I will need to work with on your attachment for a while ..

    Thanks and best regards
    Waleed
Back to Top
DevCraft banner