This is a migrated thread and some comments may be shown as answers.

can't open RadWindow

1 Answer 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Fan
Top achievements
Rank 1
Fan asked on 15 Oct 2012, 03:12 AM
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>

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 16 Oct 2012, 12:12 PM
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.
Tags
Window
Asked by
Fan
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or