Applying RestrictionZoneID to RadEditor dialogs
Article Info
Rating: Not rated
|
Article relates to
|
RadEditor for ASP.NET AJAX
|
|
Created by
|
Rumen Zhekov
|
HOW-TO
Apply RestrictionZoneID to RadEditor dialogs
DESCRIPTION
By default, RadEditor dialogs can be dragger with the mouse outside of the visiable part of the page area. This could be prevented by setting the RestrictionZoneID property of RadWindow. The solution below provides guidance how to do that.
SOLUTION
- Create a theme and skin file in it. In the skin file put the following RadWindow declaration and directive:
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<telerik:RadWindow KeepInScreenBounds="true" RestrictionZoneID="stopWindow" runat="server"></telerik:RadWindow>
- Set the theme property in the Page directive of the aspx page with the editor:
<%@ Page Language="C#" AutoEventWireup="true" Theme="SkinFileName" CodeFile="Default.aspx.cs" Inherits="_Default" %>
- Set id attribute with a value of "restictionzoneid" to the page HTML tag, e.g.
<html id="stopWindow" xmlns="http://www.w3.org/1999/xhtml">
- Put the following style tag in the head of the page to make the height of the html tag to be 100%:
<style type="text/css">
html
{
height: 100%;
}
</style>
Comments
There are no comments yet.
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.