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

    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">
    <telerik:AjaxUpdatedControl ControlID="FormView1" />
    <telerik:AjaxUpdatedControl ControlID="WindowManager1" />

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

    Posted 16 Oct 2012 Link to this post


    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: On using the OpenerElementID property - you need to set it in the code-behind, as shown here:

    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