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

rad window and master page

2 Answers 196 Views
Window
This is a migrated thread and some comments may be shown as answers.
Covertix
Top achievements
Rank 1
Covertix asked on 14 Jan 2015, 04:00 PM
Hi,

I have an asp.net application that contains a Main.Master page.
I initialize a timer on the Main.Master page in order to detect session timeout before it happens and display a message to the user.
When a user opens a RadWindow, another instance of the Main.Master is created and another timer is added to the page.

Why?

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 15 Jan 2015, 11:33 AM

Hello Tzach,

Since the content page of the RadWindow uses the same master page, it creates all controls from it and runs all code from it, so having another timer is expected. In this regard, you can consider the RadWindow to be a simple iframe that holds the content page.

What I can suggest is adding some checks in your timer code, for example, the JavaScript code can check whether it is the topmost frame (see the Determine If A Page Is Loaded Inside A RadWindow article). On the server you can create a flag in a Session variable when the user first creates the session and check for that in order to enable/disable the timer.

This is not affected by our controls in any way and these ideas are merely suggestions, as I cannot determine the best approach to handle this in the concrete case, only the developer(s) working on the project can.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
vel
Top achievements
Rank 1
answered on 11 Apr 2017, 01:06 PM

Our application developed with Asp.NET 4.5 and Bootstrap3 Telerik version 2015.1.310.40. When mouse over on radwindow main page UI getting collapsed. This issues happening only on IE9. Kindly help me. Thanks in advance.

 

 

Tags
Window
Asked by
Covertix
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
vel
Top achievements
Rank 1
Share this question
or