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

RadEditor Problem while showing using RadAjaxManager and Visible Property

1 Answer 64 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Adriano
Top achievements
Rank 1
Adriano asked on 12 Feb 2009, 10:56 AM
Hi!

When i´m trying to set the Visible property of the RadEditor to "True", from a previous "False" state, it is not loading correctly after the first postback using Ajax and a button click.
When i use the OnClientLoad="alert('Some text')" RadEditor property it works correctly.
It´s seems to be a bug.

Kind regards,

Adrian

-------------------------------------------------------------------------------------------------------------------------

ASPX Code:

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="radScriptManager" runat="server">
    </telerik:RadScriptManager>
    
        <telerik:RadAjaxManager ID="radAjaxManager" runat="server">
        <AjaxSettings>
        
            <telerik:AjaxSetting AjaxControlID="buttonA">
                <UpdatedControls>                    
                    <telerik:AjaxUpdatedControl ControlID="radEditor"  />
                </UpdatedControls>
            </telerik:AjaxSetting>

        </AjaxSettings>
    </telerik:RadAjaxManager>
    
    <div id="divEditor" runat="server">   
        <telerik:RadEditor ID="radEditor" runat="server" Width="100%" Height="500px">            
        </telerik:RadEditor>
        
        <asp:Button ID="buttonA" runat="server" OnClick="ButtonAClick" />
    </div>
    
    </form>
</body>
</html>

-------------------------------------------------------------------------------------------------------------------------

CS Code:

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;
using System.Web.Script.Services;

public partial class Default : System.Web.UI.Page
{
    public void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            radEditor.Visible = false;
        }
    }

    protected void ButtonAClick(object sender, EventArgs e)
    {
        radEditor.Visible = !radEditor.Visible;
    }
}

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Feb 2009, 03:50 PM
Hi Adrian,

The observed problem could appear if the browser is not able to read the huge embedded skin files of RadEditor. To fix the problem try the solution provided in the following KB article: Registering an external skin of RadEditor.

Since we are currently working on the RadEditor skins, there are some problems with the Skins folder provided in the official version 2008.3 1314 of RadControls for ASP.NET AJAX. That is why for your convenience I attached the the updated Skin folder to my reply. Please, use it instead of the Skins folder available in the installation.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Adriano
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or