Determine which RadPane is being closed

4 posts, 0 answers
  1. Sigd
    Sigd avatar
    8 posts
    Member since:
    Oct 2010

    Posted 23 Nov 2010 Link to this post

    I want to give all my user created RadPanes a unique name on creation, so in WindowClose I can detect which of my Panes are being closed.    In the WindowClose event, you can currently view the Panes included in the close in sender ... 

    ((Telerik.Windows.Controls.

     

    RadDocking)(sender)).Panes).

    I was hoping to use the SerialisationTag for this purpose.  So my question is, where in the RadPane returned in the WindowClose event can I find the SerialisationTag?

    If it is not available, can you suggest another property (other than Title) that I can set a unique name to the Pane and retireve it in the WindowClose event?

    Many thanks,
    Sigd

     

  2. Sigd
    Sigd avatar
    8 posts
    Member since:
    Oct 2010

    Posted 23 Nov 2010 Link to this post

    In fact, rewind that.  The RadDocking WindowClose is not the correct event !  

    Which event can I hook into to correctly determine when a RadPane is being closed?  The RadPane WindowClose event seems to fire when it moves from floating to docked, as well as when it's actually closed !?!    Is there some way to determine which it is or is there another Close event which only fires once when the RadPane is closed? 
  3. DevCraft banner
  4. Sigd
    Sigd avatar
    8 posts
    Member since:
    Oct 2010

    Posted 23 Nov 2010 Link to this post

    OK I see the correct event ... Close on the RadDcoking control.

    My original question remains, how do I identify the RadPane being closed from the sender Panes collection in sender, excluding the Title property..
  5. George
    Admin
    George avatar
    1332 posts

    Posted 26 Nov 2010 Link to this post

    Hello,

    I would suggest you to use the Panes property of the StateChangeEventArgs object. Panes property is type of IEmenurable<RadPane> and returns the closed RadPanes. 

    I hope this helps.

    Best wishes,
    George
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
Back to Top