RadWindow onClientClose postback doing the entire page?

3 posts, 0 answers
  1. Kevin
    Kevin avatar
    28 posts
    Member since:
    Feb 2009

    Posted 14 May 2009 Link to this post

    I'm calling __doPostback in the onClientClose method and the entire page is "flashing" as it reloads.   My code is below.    Each commented out section has been tried to the same effect which makes me think the rad code block might be the issue???

     

     

     

                function OnClientClose(sender, eventArgs)  
                {  
                    var toPage = eventArgs.get_argument();  
                    if (toPage)  
                    {  
                        // process the arg and route as needed...  
                        document.location = toPage;  
                    }  
                    else  
                    {  
                        var button = document.getElementById('<%=temp.ClientID %>');  
                        //button.click();  
                        
                        //var pageId = '<%=  Page.ClientID %>';  
                        //__doPostBack(pageId, 'UpdateCart');  
                        
                        // put code in here to update the header and the cart when fired...  
                        //__doPostBack('tctl00$UpdatePanelCart', '');  
                    }  
                }  
              
     

     

     

  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 16 May 2009 Link to this post

    Hello Kevin,

    When you call the __doPostBack function you actually postback the page as the function's name says. Would you please explain what exactly you want to achieve by calling __doPostBack when closing the RadWindow? Once I have a better understanding on what you are trying to achieve I will do my best to help.

    For the time being, I recommend to examine the following article which explaines how the __doPostBack function works:

    http://geekswithblogs.net/mnf/archive/2005/11/04/59081.aspx

    Kind regards,
    Svetlina
    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.
  3. Kevin
    Kevin avatar
    28 posts
    Member since:
    Feb 2009

    Posted 19 May 2009 Link to this post

    I was using the ASP.NET generated "NAME" value instead of the "ID" value.   PICNIC (Person in Chair, not in computer) error. :)
Back to Top