|
Article relates to
|
RadNotification for ASP.NET AJAX
|
|
Created by
|
Marin Bratanov, Telerik
|
|
Created on
|
7th of October, 2011
|
HOW-TO:
Make the
RadNotification display a modal overlay.
DESCRIPTION:
The
RadNotification is a lightweight control and does not have a built-in modality (i.e. no
Modal property).
SOLUTION:
The modal overlay used in a web page is actually an HTML element that has some specific properties set - absolute positioning, appropriate size, backgroung color, opacity and the unselectable attribute set to on. In this case we need to utilize the
RadNotification's client-side events and more precisely the
OnClientShowing and
OnClientHidden to respectively show and hide the modality div. Below is an example how to create such an element:
A simple, runnable page that shows the approach in action is attached.