I am returning Customer Values using RadWindows. When I retrieve the customer infro from the RadWindow I want to make 'pnlCustomerInfoCustomerData' (panel) visible. I have been trying to do this within the "function clientClose", but not sure how to do this. I am using the ASPNET Ajax 2010 tool, any ideas would be great. The code I am using is posted below:
This is my panel:
| <telerik:radscriptblock runat="server" ID="radScriptBlock"> |
| <script type="text/javascript"> |
| function openCustomerLookupWindow() |
| { |
| var txtNo = $find("<%= txtExistingCustomerSearchCustomerNo.ClientID %>"); |
| var txtCoNam = $find("<%= txtExistingCustomerSearchCompanyName.ClientID %>"); |
| var txtCPN = $find("<%= txtExistingCustomerSearchContactPerson.ClientID %>"); |
| var txtCity = $find("<%= txtExistingCustomerSearchCity.ClientID %>"); |
| var cboState = $find("<%= cboExistingCustomerSearchState.ClientID %>"); |
| var oWnd = window.radopen('../../Lookups/NavCustomerLookup.aspx?navco=<%=session("SP_SearchCustomerNavCompany")%>&no=' + txtNo.get_value() + '&conam=' + txtCoNam.get_value() + '&cpn=' + txtCPN.get_value() + '&city=' + txtCity.get_value() + '&state=' + cboState.get_value() + '',"winCustomerLookup"); |
| //oWnd.argument = combo.get_value(); |
| oWnd.Center(); |
| //oWnd.SetSize(800,500); |
| } |
| function clientShow(sender, eventArgs) |
| { |
| //var txtDate = $find("<%= txtExistingCustomerSearchCustomerNo.ClientID %>"); |
| //sender.argument = txtDate.get_value; |
| //sender.argument = document.getElementById('<%=txtExistingCustomerSearchCustomerNo.ClientID%>').innerText; |
| } |
| function clientClose(oWnd,args) |
| { |
| var txtNo = $find("<%= txtExistingCustomerSearchCustomerNo.ClientID %>"); |
| var txtCoNam = $find("<%= txtExistingCustomerSearchCompanyName.ClientID %>"); |
| var txtCPN = $find("<%= txtExistingCustomerSearchContactPerson.ClientID %>"); |
| var txtCity = $find("<%= txtExistingCustomerSearchCity.ClientID %>"); |
| var cboState = $find("<%= cboExistingCustomerSearchState.ClientID %>"); |
| //get the transferred arguments |
| var arg = args.get_argument(); |
| if(arg) |
| { |
| var CustomerNo = arg.CustomerNo; |
| var CompanyName = arg.CompanyName; |
| var ContactPersonName = arg.ContactPersonName; |
| var CustomerCity = arg.CustomerCity; |
| var CustomerState = arg.CustomerState; |
| txtNo.set_value(CustomerNo); |
| txtCoNam.set_value(CompanyName); |
| txtCPN.set_value(ContactPersonName); |
| txtCity.set_value(CustomerCity); |
| cboState.set_value(CustomerState); |
| document.getElementById('pnlCustomerInfoCustomerData').style.display = 'none'; |
| } |
| document.forms[0].submit(); |
| } |
| </script> |
| </telerik:radscriptblock> |
This is my panel:
| <telerik:radajaxpanel runat="server" LoadingPanelID="LoadingPanel" ID="AjaxPanel" Wrap="False" EnableAJAX="False"> |
| <asp:Panel ID="pnlCustomerInfoCustomerData" runat="server"> |
| </asp:Panel> |
| </telerik:RadAjaxPanel> |