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

RadWindow onClientClose postback doing the entire page?

2 Answers 110 Views
Window
This is a migrated thread and some comments may be shown as answers.
Kevin
Top achievements
Rank 1
Kevin asked on 14 May 2009, 02:10 PM
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 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 16 May 2009, 03:04 PM
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.
0
Kevin
Top achievements
Rank 1
answered on 19 May 2009, 07:34 PM
I was using the ASP.NET generated "NAME" value instead of the "ID" value.   PICNIC (Person in Chair, not in computer) error. :)
Tags
Window
Asked by
Kevin
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Kevin
Top achievements
Rank 1
Share this question
or