can't close RadDockPanItem

4 posts, 0 answers
  1. Murat
    Murat avatar
    9 posts
    Member since:
    Mar 2011

    Posted 30 Mar 2011 Link to this post

    Hi;

    I'm adding new pans to the RadDockPan with followind code : 

    RadPane pane = new RadPane();
    pane.Header = "Caption";
    pane.Content = new SilverlightUserControl1();
    dockPan1.paneGroupName.AddItem(pane, Telerik.Windows.Controls.Docking.DockPosition.Center);

    After i add 4 panes to center. When i want to close them the first pane closes normally but the second one locks the browser. How can i solve this issue?

    Sincerely yours.
  2. George
    Admin
    George avatar
    1332 posts

    Posted 04 Apr 2011 Link to this post

    Hello Murat,

     
    I would suggest you to use the RadPaneGroup.Items.Add method, not the RadPaneGroup.AddItem. Please, give it a try and let me know if you have any problems with RadDocking control. 

    I am glad to assist you further.

    Kind regards,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Murat
    Murat avatar
    9 posts
    Member since:
    Mar 2011

    Posted 05 Apr 2011 Link to this post

    Hi, Problem still exist.

    xaml code:
    <telerik:RadDocking Grid.Row="1" x:Name="Docking" Background="{x:Null}" BorderBrush="{x:Null}" BorderThickness="0" Padding="0">
        <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer>
                <telerik:RadPaneGroup x:Name="DocumentGroup">
                    <telerik:RadPane x:Name="rbdMap" Header="Map"
                            telerik:RadDocking.FloatingSize="450, 400" CanUserClose="False" Title="Map">
                        <map:GisControl />
                    </telerik:RadPane>
                </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer InitialPosition="DockedLeft">
            <telerik:RadPaneGroup>
                <telerik:RadPane Header="Address List"
                        telerik:RadDocking.SerializationTag="PaneLeft1" Title="Address List">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto" />
                            <RowDefinition Height="*" />
                        </Grid.RowDefinitions>
     
                        <StackPanel Orientation="Horizontal" Grid.Row="0" Margin="2"/>
                    </Grid>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking>

    cs:
    RadPane rdEvent = new RadPane
                   {
                       Name = "rdEvent",
                       Header = "Events",
                       Title = "Events",
                   };
                   DocumentGroup.Items.Add(rdEvent);
  5. George
    Admin
    George avatar
    1332 posts

    Posted 07 Apr 2011 Link to this post

    Hi Murat,

     
    I suppose you are creating more than one RadPane instance with one and same name. In silverlight framework each control must have unique name. Please, remove setting the RadPane.Name property. Please, double check you are not trying to close the rbdMap RadPane which is defined in the xaml, because it is with set property: CanUserClose="False

    Please, give it a try and let me know if you still have any problems.

    All the best,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top