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

Calling Radwindow inside Radwindow with UpdatePanel

2 Answers 68 Views
Window
This is a migrated thread and some comments may be shown as answers.
reguapo
Top achievements
Rank 1
reguapo asked on 06 Aug 2012, 02:28 PM
I have the following scenario:
I have a page with a button that in the click event open a Radwindow, inside that Radwindow (is a sort of wizard) I need to open another popup windows (maybe another radwindow?) to retrieve some info, but the first Radwindow (sort of wizard) has an update panel for ajax effects. 

How can i do this?

Thanks

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 07 Aug 2012, 05:09 AM
Hi reguapo,

You can use a UpdatePanel and add the control inside it and can ajaxify the controls inside it. Please check this demo for more information.

ASPX:
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
  <AjaxSettings>
    <telerik:AjaxSetting AjaxControlID="Button1">
      <UpdatedControls>
        <telerik:AjaxUpdatedControl ControlID="UpdatePanel1" LoadingPanelID="RadAjaxLoadingPanel1">
        </telerik:AjaxUpdatedControl>
      </UpdatedControls>
    </telerik:AjaxSetting>
  </AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
</telerik:RadAjaxLoadingPanel>
<fieldset id="fld1">
  <legend>One way ticket</legend><span style="margin: 6px 0 0 18px;">Choose date:</span>
  <telerik:RadDatePicker ID="Datepicker1" Skin="Sunset" runat="server" Width="140">
    <ClientEvents OnPopupOpening="AdjustRadWidow" OnPopupClosing="AdjustRadWidow" />
  </telerik:RadDatePicker>
  <div style="margin: 20px 0 0 0;">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
        <div style="float: left; margin: 6px 0 0 18px;">Choose City:</div>
        <input type="text" style="width: 100px;" id="cityName" />
      </ContentTemplate>
    </asp:UpdatePanel>
    <asp:Button ID="Button1" runat="server" Text="Button" />
  </div>
</fieldset>
<div style="margin-top: 4px; text-align: right;">
  <button title="Submit" id="close" onclick="returnToParent(); return false;">Submit</button>
</div>

Hope this helps.

Regards,
Princy.
0
reguapo
Top achievements
Rank 1
answered on 07 Aug 2012, 01:04 PM
Thanks for the answer, I did what I want to do but just using asp updatepanel and jquery dialog, but with this way I loose every advantage of Telerik control, now I will try what you suggest based on the Demo.

Thanks again.
Tags
Window
Asked by
reguapo
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
reguapo
Top achievements
Rank 1
Share this question
or