EnumeratePanes returns empty in Silverlight 3 Internal Build

5 posts, 0 answers
  1. Alan
    Alan avatar
    48 posts
    Member since:
    Jun 2009

    Posted 15 Jul 2009 Link to this post

    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.
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 16 Jul 2009 Link to this post

    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.
  3. Alan
    Alan avatar
    48 posts
    Member since:
    Jun 2009

    Posted 20 Jul 2009 Link to this post

    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?
  4. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 21 Jul 2009 Link to this post

    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.
  5. Alan
    Alan avatar
    48 posts
    Member since:
    Jun 2009

    Posted 21 Jul 2009 Link to this post

    I sent in my sample project.  The support ticket is 228941.
Back to Top