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

Multiple rad windows from single aspx page

1 Answer 128 Views
Window
This is a migrated thread and some comments may be shown as answers.
parvati
Top achievements
Rank 1
parvati asked on 05 Mar 2009, 11:44 AM
Hi,
We need to open 3 pop-up  windows from one aspx page to edit the information, i am using telerik window
I am using a radwindowmanager and i have 3 - windows

<telerik:RadWindowManager ID="WinManager" runat="server">  

<Windows>   

<telerik:RadWindow id="WinAccInfo" 

Behaviors="Close"

 

Skin="Vista"

ReloadOnShow = "true"  

ClientCallBackFunction="CallBackFunction"

 OnClientshow = "OnClientshow"

 OnClientclose = "OnClientclose"

 openerElementId = "<%# btnEditAccountInformation.ClientID %>"

 OffsetElementId = "<%# lblContactName.ClientID%>"

 Left="350px"

 Modal = "true"

 Runat="server"

 Width="400px"

 Height="500px"

 Title="Account Information"

 VisibleStatusbar="false" >

 </telerik:RadWindow>   

<telerik:RadWindow ID="winPaymentInfo"  

Behavior="Close"  

Skin="Vista" 

ReloadOnShow="true"  

ClientCallBackFunction="PaymentInfoCallBack"  

OnClientShow="PaymentInfoShow"  

OnClientclose = "PaymentOnClientclose"  

openerElementId = "<%# btnEditPaymentInformation.ClientID %>"

 

OffsetElementId = "<%# lblNameOnCard.ClientID%>"  

 

 

Left="350px"  

Modal = "true" Runat="server"

 Width="400px"

 Height="400px"

 Title="Payment Information" VisibleStatusbar="false">

 </telerik:RadWindow>

 <telerik:RadWindow id="DialogBillingWindow"

 Behaviors="Close"

 Skin="Vista"

 ReloadOnShow = "true"

 ClientCallBackFunction="BillingCallBackFunction"

 OnClientshow = "OnBillingClientshow"

 OnClientclose = "OnClientclose"

 openerElementId = "<%# btnEditBillingInformation.ClientID %>"

 OffsetElementId = "<%# lblBillingName.ClientID%>"

 Left="350px"

 Modal = "true"

 Runat="server"

 Width="400px"

 Height="400px"

 Title="Billing Information" > 

</telerik:RadWindow 

</Windows 

</telerik:RadWindowManager>


the javascript functions to open window are

 

function showDialog() 

{

 

 

var oWnd = $find("<%=WinAccInfo.ClientID%>");

 

 

var url= "AccountInfoEdit.aspx?oState=" +document.getElementById('<%=lblState.ClientID%>').innerHTML

 

url= url +

 

"&ocountry=" + document.getElementById('<%=lblCountry.ClientID%>').innerHTML;

 

oWnd.setUrl(url);

oWnd.show();

 

}

 function showbillDialog()

 

{

  

 

var oManager = GetRadWindowManager();  

 var oWnd = oManager.GetWindowByName("DialogBillingWindow");

 var url= "BillingInfoEdit.aspx?oState=" +document.getElementById('<%=lblBillingState.ClientID%>').innerHTML;

 

url= url + "&ocountry=" + document.getElementById('<%=lblBillingCountry.ClientID%>').innerHTML;  

oWnd.setUrl(url);

oWnd.show();

 }

 function showDialogPaymentInfo()

 {  

 

var oWnd = $find("<%=winPaymentInfo.ClientID%>");  

 

var url= "PaymentInfoEdit.aspx?expdt=" + document.getElementById('<%=lblExpirationDate.ClientID%>').innerHTML ; 

url= url +

 

"&ccType=" + document.getElementById('<%=lblCardType.ClientID%>').innerHTML 

 

oWnd.setUrl(url);

oWnd.show();

 

}

 

 

i have no issues to open windows and get back the value but when i click on the submit button on parent window to save the information. I am getting the javascript error "Microsoft JScript runtime error: 'parentNode' is null or not an object" .

May i know what may be causing teh issue or how can i solve this issue.
the main goal is to open multiple windows from an aspx page.

Thanks in advance
Parvati

1 Answer, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 06 Mar 2009, 03:59 PM
Hi Parvati,

As I wrote in my response to your support ticket, we need a simple demo project, where we can observe the problem. Please send us such project and we will do our best to help.


Best wishes,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Window
Asked by
parvati
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or