RadWindow not Reloading

3 posts, 1 answers
  1. Kevin
    Kevin avatar
    265 posts
    Member since:
    Jun 2011

    Posted 06 Aug 2013 Link to this post

    I am pulling a aspx page through a radwindow onto my page via a <a href onclick> 

    the window shows and everything comes up great, the problem is when I go to click on it agian the window will not show agian, and I have no clue why, but if I refresh the page it works fine again.  is there something else i need to set in the properties to enable this window toi be opened multiple times on a page if need be.  Originall I had a a mouse over but that got annoying in swiping mouse over label accidentally so I changed to onclick.

    <telerik:RadWindow ID="RadEducation" runat="server" AutoSize="true" DestroyOnClose="true" Animation="FlyIn" NavigateUrl="~/Admin/Educationkey.aspx" MaxHeight="600px" MaxWidth="300px" Modal="true"  SkinID="Web20" OffsetElementID="lblKey"></telerik:RadWindow>
     
     <a href="#" onclick="myMouseOver();">key</a><asp:Label ID="lblKey" runat="server"></asp:Label>
     
     
     function myMouseOver() {
                   var oWnd = $find("<%=RadEducation.ClientID%>");
                   oWnd.show();
               }


  2. Answer
    A2H
    A2H avatar
    177 posts
    Member since:
    Mar 2010

    Posted 06 Aug 2013 Link to this post

    Hello,

    The problem was that RadWindow’s “DestroyOnClose ” property is set to true.

    When this property is enabled it will remove the client-side markup and JavaScript object of radwindow on closing. Hence the next time when you click on the button you won’t be able to see the radwindow popup. 

      

    To resolve the issue:

    •  Set value "false" to the  DestroyOnClose property or don't declare it.


    Thanks,
    A2H
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin
    Kevin avatar
    265 posts
    Member since:
    Jun 2011

    Posted 07 Aug 2013 Link to this post

    Thanks for the help.
Back to Top