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
0
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.
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:
I need to get the UserControl that I set as the Content of the pane. Is this the expected behavior?
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
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.
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.