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

can't close RadDockPanItem

3 Answers 77 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Murat
Top achievements
Rank 1
Murat asked on 30 Mar 2011, 09:42 AM
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.

3 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Apr 2011, 05:09 PM
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
0
Murat
Top achievements
Rank 1
answered on 05 Apr 2011, 03:20 PM
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);
0
George
Telerik team
answered on 07 Apr 2011, 05:13 PM
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
Tags
Docking
Asked by
Murat
Top achievements
Rank 1
Answers by
George
Telerik team
Murat
Top achievements
Rank 1
Share this question
or