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

Stop Parent Page Refreshing

1 Answer 258 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gangadhar
Top achievements
Rank 1
Gangadhar asked on 01 Jul 2014, 11:09 AM
Hi ,

I have a parent page  RequestsBrowse.aspx . The page containing a gridview as per attached Document . The gridview contains one column with a image button which will call a javascript method and which opens a radwindow named Actioncreate.aspx .The parent page will refresh every 60 seconds . 

Issue : While clicking on Image button , Radwindow(Actioncreate.aspx) opened . But after 60 seconds , the parent page refreshed and the child radwindow automatically closed . I want to make the Parent window stop refreshing and dont want to close the radwindow.

Code :
----------
<a  class="HyperlinkValue" href='Javascript: AddAction("<%# DataBinder.Eval(Container.DataItem, "RequestNumber") %>$<%# DataBinder.Eval(Container.DataItem, "RQSPrimaryId") %>$<%# DataBinder.Eval(Container.DataItem, "openflag") %>$0","<%# DataBinder.Eval(Container.DataItem, "Urgency") %>","<%# DataBinder.Eval(Container.DataItem, "Worker") %>","<%# DataBinder.Eval(Container.DataItem, "WorkOrder") %>");'>
<img border="0" alt='Add Action' title='Add Action' src='images/addaction.gif'>

Refreshing Parent page code :
----------------------------------------
if ((rsi.dispatchesRefresh != 0)&&(hdnStopAutoRefresh.Value=="0"))
                                Response.AddHeader("Refresh", rsi.dispatchesRefresh.ToString());

Please reply back .

Thanks and Regards
Ganga







1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Jul 2014, 05:59 AM
Hi Gangadhar,

You can use RadWindow's VisibleOnPageLoad property to show/hide RadWindows via AJAX/Postback. The default behavior is the changes made on the client side will not persist after postback, because of that RadWindow is closing. In your sceanrio try to use this approach.

Please provide your code if it doesn't help.
Thanks,
Princy.
Tags
General Discussions
Asked by
Gangadhar
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or