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

EnumeratePanes returns empty in Silverlight 3 Internal Build

4 Answers 59 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Alan
Top achievements
Rank 2
Alan asked on 15 Jul 2009, 06:20 PM
I'm using the July 10 internal build for Q2 Silverlight 3.  When I call EnumeratePanes, I get no panes back.

foreach (RadPane pane in paneGroup.EnumeratePanes())
                {
                     //I never get here
                }

I do have panes in my paneGroup at the time this is executed.  This worked in the official Q2 release.

4 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 16 Jul 2009, 12:08 PM
Hello Alan,

The EnumeratePanes() method of the RadPaneGroup control will return an empty RadPane collection in case you changed the position of this RadPaneGroup. This is because  the RadDocking dynamically create a new RadPaneGroup where the dragging panes are stored . You can use RadDocking.Panes property to get a reference to all panes in the RadDocking control. Let us know if you need more information.

Kind regards,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alan
Top achievements
Rank 2
answered on 20 Jul 2009, 08:47 PM
Kaloyan,

Thank you for the reply.  I tried changing my code to look at the Panes collection of my docking control, but the content is a RadPanelBar and not the content (UserControl) that I put inside the pane.

Here is my code:

           if (docking != null)  
            {  
                foreach (RadPane pane in docking.Panes)  
                {  
                    // pane.Content is of type RadPanelBar  
                }  
            } 
 
I need to get the UserControl that I set as the Content of the pane.  Is this the expected behavior?
0
Kaloyan
Telerik team
answered on 21 Jul 2009, 06:56 AM
Hi Alan,

Can you post a sample code or project showing the issue, so we could be able to localize the exact problem.

Sincerely yours,
Kaloyan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Alan
Top achievements
Rank 2
answered on 21 Jul 2009, 01:55 PM
I sent in my sample project.  The support ticket is 228941.
Tags
Docking
Asked by
Alan
Top achievements
Rank 2
Answers by
Kaloyan
Telerik team
Alan
Top achievements
Rank 2
Share this question
or