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

Session TimeOut notification SetInterval issue

1 Answer 125 Views
Notification
This is a migrated thread and some comments may be shown as answers.
Rama
Top achievements
Rank 1
Rama asked on 25 Nov 2016, 11:21 PM

Hi,

I have implemented SessionTimeOut exactly as shown in the example http://www.telerik.com/forums/demo-for-session-timeout-is-confusing

However, I need the TimeOut notification to appear only on the home page, the default page after logging in. When the user clicks on a grid view row on the home page, which sets the sessions etc and navigates to various other pages, the timeout should not appear.

For this, I am setting the ShowInterval to Session.Timeout - 1 on page load and setting it to 0 on click of the gridview row.

However, the timeout notification is always showing after the time out ie., the timer is always ticking in the background.

Any suggestions are highly appreciated.

Thank you.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Nov 2016, 08:36 AM

Hello Rama,

You can declare the markup and scripts only on the desired home page, so it will not show up on others.

You can also set the Visible property of the notification and a container of the scripts to false depending on your conditions (e.g., a postback has occurred, or the user changed some settings, etc.). This will also reduce the page footprint.

Regards,

Marin Bratanov
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
Tags
Notification
Asked by
Rama
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or