Window does not open in RadDock

3 posts, 0 answers
  1. Derek
    Derek avatar
    10 posts
    Member since:
    Sep 2008

    Posted 02 Nov 2009 Link to this post

    Currently I have a user control which contains a RadGrid, RadWindow and RadAjaxManagerProxy.

    On the page which contains the control, initially when tested it worked fine. I'd click a button on the RadGrid would bring up the RadWindow. I've since moved it into a RadDock, now when the button is clicked, a post back happens, but the window does not pop up.

    Here is the code for the window itself.

        <telerik:RadWindowManager ID="RadWindowManager1" runat="server" OnClientClose="OnClientCloseHandler"
    DestroyOnClose=
    "true" ReloadOnShow="true"
            <Windows> 
                    <telerik:RadWindow ID="windowNotes" Behaviors="Close" KeepInScreenBounds="True" Modal="True" 
                                 runat="server" Width="450px"   VisibleStatusbar="False"  ReloadOnShow="true"
                    </telerik:RadWindow>  
            </Windows> 
        </telerik:RadWindowManager>   

    The code from when the button is being pushed.

    windowCustomerNotes.VisibleOnPageLoad = true
    windowCustomerNotes.NavigateUrl = "~/Admin/Notes.aspx" 
     
    windowCustomerNotes.Title = "Notes On" + firstName + " " + lastName 

    And the page that contains it has a radAjaxManager which points to the panel which has the control inside of it.

     
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server"  
             storelayoutinviewstate="True"
       <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="350px" Width="180px"
          <telerik:RadDock ID="rdockUsers" runat="server" Width="1270px" Height="250px" 
                        BorderColor="Black" DefaultCommands="ExpandCollapse"  
                        EnableAnimation="True" Resizable="True" Title="Users"  
                        Collapsed="True" onclientinitialize="OnClientInitialize" 
                        OnClientDragStart="OnDragStart" OnClientDragEnd="OnDragEnd" 
                        onclientdockpositionchanged="OnClientPositionChanged"
                        <ContentTemplate> 
                            <div style="padding-left:5px;padding-right:5px;"
                                <asp:Panel ID="pnlUsers" runat="server"
                                    <UC:Users id="users1" runat="server" /> 
                                </asp:Panel> 
                            </div> 
                        </ContentTemplate> 
                    </telerik:RadDock> 
            </telerik:RadDockZone> 
        </telerik:RadDockLayout> 

    As I said when I just had the panel on the page the rad window showed just fine. Also if I set the attribute "visibleonpageload" on the window itself. When the rdock initially loads on the page, the window will be shown.

    Any reason why the window will not show any more?

    Thanks
  2. Derek
    Derek avatar
    10 posts
    Member since:
    Sep 2008

    Posted 02 Nov 2009 Link to this post

    Also I just figured out that a normal button will cause the window to open up inside of the control, but a standard button inside of the radgrid will not (haven't tried a grid template button yet.)
  3. Derek
    Derek avatar
    10 posts
    Member since:
    Sep 2008

    Posted 02 Nov 2009 Link to this post

    I figured it out. The reason why a normal button press worked, is because it wasn't being controlled by the ajaxmanagerproxy. So it was updating the whole panel, including the window.

    The window itself is located inside of a window manager. I manually did the ajaxmanagerproxy stuff, instead of using the gui. What happened is it was in a manager (originally was by itself.) So the ajaxmanagerproxy was pointing to the individual window. I switched it to point to the manager. Boom success.

    Got to love the one line errors.

    Thanks,
    Derek
Back to Top