can't open RadWindow

2 posts, 0 answers
  1. Fan
    Fan avatar
    1 posts
    Member since:
    Oct 2012

    Posted 14 Oct 2012 Link to this post

    hi,
    There are some controls in FormView.  One of them is button. Click the button can open RadWindow.But I can't open the RadWindow after I set FormView with AJAX. Please see the following code. Can you help me? Thank you!
     
    <telerik:AjaxSetting AjaxControlID="FormView1">
    <UpdatedControls>
    <telerik:AjaxUpdatedControl ControlID="FormView1" />
    <telerik:AjaxUpdatedControl ControlID="WindowManager1" />
    </UpdatedControls>
    </telerik:AjaxSetting>

     <telerik:RadWindowManager id="WindowManager1" runat="server" Behavior="Default" InitialBehavior="None" Left="" Top="">
     <windows>
      <telerik:RadWindow id="DialogWindow" Behaviors="Close" ReloadOnShow = "true" OnClientshow = "OnClientshow" OnClientclose = "OnClientclose" openerElementId = "<%# button1.ClientID %>"  Modal = "true" Runat="server" NavigateUrl="window1.aspx">
      </telerik:RadWindow>  
     </windows>
    </telerik:RadWindowManager>
  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    5699 posts

    Posted 16 Oct 2012 Link to this post

    Hello,

    If you are opening the RadWindow from a server-side event you need to make sure you inject the script properly for use in an AJAX environment. How to do this is shown here: http://www.telerik.com/community/forums/aspnet-ajax/window/opening-radwindow-from-the-server.aspx. On using the OpenerElementID property - you need to set it in the code-behind, as shown here: http://demos.telerik.com/aspnet-ajax/window/examples/openandposition/defaultcs.aspx.


    Kind regards,
    Marin Bratanov
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top