RadWindow clientClose Event

2 posts, 0 answers
  1. Ryan Pope
    Ryan Pope avatar
    61 posts
    Member since:
    Apr 2008

    Posted 23 Jun 2010 Link to this post

    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> 
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jun 2010 Link to this post

    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
Back to Top