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

pop-up window reload

3 Answers 102 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anumeha
Top achievements
Rank 1
Anumeha asked on 23 Dec 2010, 07:51 PM

I am having a strange behavior with my pop-up window. Everything works fine the first time I load the pop-up window. Once the control comes back to the parent page, if the user tries to load the pop-up page again, it does not load correctly. It changes the size of the window and does not function right. If I refresh the page and load the pop-up it works fine.

Below is my window declaration. let me know what I am doing wrong here:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server" 
        Behavior="None"  ShowContentDuringLoad="false">
        <Windows>
            <telerik:RadWindow ID="RadWindowRole" runat="server"  DestroyOnClose="false" OnClientClose="OnClientClose"
                 Behavior="None" ReloadOnShow="true" ShowContentDuringLoad="false"
                Width="975px" Height="545px" Modal="true" />
        </Windows>
    </telerik:RadWindowManager>

3 Answers, 1 is accepted

Sort by
0
Svetlina Anati
Telerik team
answered on 24 Dec 2010, 12:30 PM
Hi Anumeha,

 I already built and examined a test demo based on your explanations in your other thread. However, when I tested reloading the content page of RadWindow as you explain in this thread I was again unable to reproduce the problem. The only thing I can think of for this problem is again a js error which could cause both the problems you describe.
 
If you need further assistance, please open a new support ticket and attach a fully runnable sample there so that we can debug it our side and see what is actually happening.

Greetings,

Svetlina
the Telerik team

 

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Anumeha
Top achievements
Rank 1
answered on 04 Jan 2011, 10:13 PM
Hi ,

I am still not able to resolve the issue.
I don't get any js errors and I have the EnableViewState set to false.

I have a scenario where I click on a button and it calls a javascript function
function ConfirmUpdate(confirmText, action) {
  
                buttonAction = action;  
                radconfirm(confirmText, callBackFn, 300, 100, '', 'Confirm');
            }
  
            var callBackFn = function(arg) {
                if (arg) {
                    var hdnAction = document.getElementById("<%=hdnButtonAction.ClientID %>");
                    hdnAction.value = buttonAction;
                    document.getElementById('<%= btnUpdate.ClientID %>').click();
                }
            }

On the postback handler for btnUpdate I open the pop-up window like this:
function ShowPolicyRoles(path, value) {
                window.radopen("SelectRole.aspx?path=" + path + "&value=" + value, "RadWindowRole");
                return false;
            }


I noticed that when i close the pop-up and return back to the parent window, if i click the button again my form does not postback.
Does this have anything to do with the radwindow and callback fn?

Below is my window declaration:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ReloadOnShow="true"
        EnableViewState="false" VisibleOnPageLoad="false" Behavior="None" DestroyOnClose="true"
        ShowContentDuringLoad="false">
        <Windows>
            <telerik:RadWindow ID="RadWindowSelectPolicyRole" runat="server" DestroyOnClose="true"
                Title="Activity" OnClientClose="OnClientClose" Behavior="None" ReloadOnShow="true"
                ShowContentDuringLoad="false" EnableViewState="false" VisibleOnPageLoad="false"
                Width="975px" Height="545px" Modal="true" />
        </Windows>
    </telerik:RadWindowManager>


Seems like it's just reloading the old windows. If this does not help I will try to submit a support ticket.
0
Georgi Tunev
Telerik team
answered on 05 Jan 2011, 12:08 PM
Hi Anumeha,

To be able to help, we'll need a sample project that isolates the problem. Please send us such project (this blog post will help in the task) and we will check it right away.



Greetings,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Window
Asked by
Anumeha
Top achievements
Rank 1
Answers by
Svetlina Anati
Telerik team
Anumeha
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or