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

Timer on modal radwindow causes postback on Parent

2 Answers 182 Views
Window
This is a migrated thread and some comments may be shown as answers.
Yogendra
Top achievements
Rank 1
Yogendra asked on 13 Nov 2012, 10:38 PM
Dear All, 

I have a page with grid. The grid has a template column wit a hyperlink. I open a modal rad window when I click the link.
On the window, I need to do 2 things. I have a long running process that updates the DB. I have a asp timer on the window, which queries the server DB and  refreshes the data on window. 

My problem is, the timer on Window causes postback on the parent page. Although not a postback because it does not actually call the page load on the parent. However we can see the green status bar in the parent page. 
Something to do with the Ajax manager. I have already ajaxified the timer. 

I have attached a screenshot of the problem as attachment. 
Following is the code for my timer on the radwindow.
<asp:Panel ID="TimerPanel" runat="server">
           <asp:Timer ID="RefreshTimer" runat="server" Interval="1000" OnTick="RefreshTimer_Tick"
           Enabled="true" EnableViewState="False" ViewStateMode="Disabled">
           </asp:Timer>
       </asp:Panel>

Below is the code for the RadAjaxManager
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="UpdaterLoadingPanel">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="TimerPanel">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="PreviewDiv" LoadingPanelID="UpdaterLoadingPanel" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>

2 Answers, 1 is accepted

Sort by
0
Yogendra
Top achievements
Rank 1
answered on 13 Nov 2012, 11:57 PM
I got this working. 
0
RM
Top achievements
Rank 1
answered on 28 Oct 2015, 09:15 PM
How? First rule of looking for answers on the internet. If you figure it out, you post your solution.
Tags
Window
Asked by
Yogendra
Top achievements
Rank 1
Answers by
Yogendra
Top achievements
Rank 1
RM
Top achievements
Rank 1
Share this question
or