Change the templates of the predefined dialogs (radalert, radconfirm and radprompt)
|
Article relates to
|
RadFileExplorer for ASP.NET AJAX
|
|
Created by
|
Fiko
|
|
Last modified
|
September 24, 2010
|
|
Last modified by
|
Fiko
|
HOW TO
Change the templates of the predefined dialogs shown in RadFileExplorer control.
DESCRIPTION
This article shows how to set new templates for the radconfirm, radalert and radprompt dialogs shown in RadFileExplorer control. The provided solution allows introducing a completely new look and feel of the dialogs.
SOLUTION
The predefined dialogs' templates can be changed by assigning the desired templates to the corresponding template properties of the RadWindowManager embedded in the RadFileExplorer. The manager can be accessed by using the WindowManager property of the RadFileExplorer control.
The example bellow goes through all the steps in order to change the alert template:
- Add a new class to the App_Code folder. Name the class AlertTemplate - it should inherit the ITemplate interface:
C#
VB.NET
- Create AlertTemplate.ascx user control which contains the new template. The template should be prepared based on the information provided in this help article.
AlertTemplate.ascx's content for the alert template:
- The same should be done for the rest of the templates. Then the new templates should be assigned to the corresponding RadWindowManager's properties:
C#:
VB.NET:
Comments
If you'd like to comment on this KB
article, please, send us a
Support Ticket.
Thank you!
Please
Sign In
to rate this article.