Unable to find element using FindName when in RadPane

2 posts, 0 answers
  1. Clinton
    Clinton avatar
    22 posts
    Member since:
    May 2011

    Posted 22 May 2011 Link to this post

    Hi there,

    I have objects inside a RadPane.  If the Group is unPinned to the side of the screen as a tab, I can no longer reference my objects using FindName.

    Instead it returns a NULL result for my object.




    myPane = LayoutRoot.FindName("DesignerPanelButtons") as PanelDesignerButtons;



    Any help is appreciated.

    Thank you


  2. Konstantina
    Konstantina avatar
    2332 posts

    Posted 25 May 2011 Link to this post

    Hi Clinton,

    This is because the content of the pane that is not currently selected or is in the auto hide area is not part of the visual tree. What I would suggest you is not to put names to the user controls but to the panes to find their contents.

    Hope this information helps.

    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 R3 2016 release webinar banner
Back to Top