Radwindow event not firing from a Docking

2 posts, 0 answers
  1. Abner
    Abner avatar
    10 posts
    Member since:
    Apr 2014

    Posted 01 Dec 2014 Link to this post

    Hi,

    I have the below situation:

    One Radwindow that constains inside it a raddocking with two RadPaneGroup inside each one another radwindow.

    Example: 
    <telerik:RadWindow>
        <telerik:RadDocking>
            <telerik:RadSplitContainer>
                  <telerik:RadPaneGroup Name="PaneGroup1">
                        <telerik:RadPane>
                              // I have here a usercontrol that is a RadWindow, which loads when i open the main usercontrol
                              <telerik:RadWindow Name="Chart">
                              </telerik:RadWindow>
                        </telerik:RadPane>
                   </telerik:RadPaneGroup>
                   <telerik:RadPaneGroup Name="PaneGroup2">
                        <telerik:RadPane>
                              // This radwindow is another usercontrol added programatically as RadPaneAppHost.Content = UserControlAppHost with an closed event being subscribed UserControlAppHost.Closed += new EventHandler<WindowClosedEventArgs>(AppHost_Closed);
                              <telerik:RadWindow Name="UserControlAppHost">
                              </telerik:RadWindow>
                        </telerik:RadPane>
                   </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>
     </telerik:RadWindow>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            My problem is the closed event is not being fired when i click in a custom close button, if i dont added as Content, just open the radwindow separetelly the same event is fired in my main usercontrol, but since i added as content it doesnt fire the event, i tried to added inside a stackpanel then added the stackpanel as content the same happens, the event is never fired in my main usercontrol.                                                                                                                                                                                                                                                                                                                                                                                                        Could you help me with that isssue?                                                                                                                                                                                                       Thanks













  2. Nasko
    Admin
    Nasko avatar
    586 posts

    Posted 02 Dec 2014 Link to this post

    Hello Abner,

    The described behavior of RadWindow could be an expected one as defining RadWindow directly in XAML is not supported and not recommended approach. Please, check the following article from our help documentation that demonstrates how to use RadWindow as UserControl and how to initialize it:
    http://www.telerik.com/help/wpf/radwindow-how-to-use-radwindow-as-user-control.html

    Also, could you please provide us more detailed information about your scenario, so we could suggest you another approach to achieve the desired.

    We are looking forward to hearing from you.

    Regards,
    Nasko
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
Back to Top