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

RadWindow clientClose Event

1 Answer 67 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ryan Pope
Top achievements
Rank 1
Ryan Pope asked on 23 Jun 2010, 02:35 PM
I am writing a program that opens up a RadWindow for the user to select a user, the window returns the appropriate info from the customer selected. In the ClientClose function I have been trying to make 'pnlCustomerInfoCustomerData' visible=True. I have attached my code below that I am trying to use, any help would be great.

<telerik:radscriptmanager runat="server" ID="ScriptManager" EnablePageMethods="True"></telerik:radscriptmanager>  
 
    <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> 


The Panel I use:
<telerik:radajaxpanel runat="server" LoadingPanelID="LoadingPanel" ID="AjaxPanel" Wrap="False" EnableAJAX="False">  
<asp:Panel ID="pnlCustomerInfoCustomerData" runat="server"></asp:Panel>  
</telerik:RadAjaxPanel> 

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jun 2010, 12:14 PM
Hello Ryan,

Please check the replies in your other topic on the same subject: link.

Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Ryan Pope
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or