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

OutputCache fails for web user controls with RadEditor

1 Answer 54 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Khourshed Yakubov
Top achievements
Rank 1
Khourshed Yakubov asked on 08 Jul 2010, 10:54 PM
Hi!
I am trying to put RadEditor to cached webusercontrol and it always fails to start page with some JavaScript errors:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="EditorTest.ascx.cs" Inherits="EditorTest"    %>
<%@ OutputCache Duration="3600" VaryByParam="none"   %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>           
            <telerik:RadEditor Height="300px" ID="RadEditor1" EnableResize="false"
            style="margin-top: 50px" ToolbarMode="ShowOnFocus" EnableViewState="false"
                runat="server" EditModes="Design">
                <Modules>
                    <telerik:EditorModule Visible="false" />
                </Modules>
                <Tools>
                <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="AjaxSpellCheck" />
                        <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                        <telerik:EditorTool Name="Cut" />
                        <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                        <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                        <telerik:EditorTool Name="PasteStrip" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                        <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                    </telerik:EditorToolGroup>
                    <telerik:EditorToolGroup>
                        <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                        <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                        <telerik:EditorTool Name="Underline" ShortCut="CTRL+U" />
                        <telerik:EditorTool Name="StrikeThrough" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="JustifyLeft" />
                        <telerik:EditorTool Name="JustifyCenter" />
                        <telerik:EditorTool Name="JustifyRight" />
                        <telerik:EditorTool Name="JustifyFull" />
                        <telerik:EditorTool Name="JustifyNone" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="Indent" />
                        <telerik:EditorTool Name="Outdent" />
                        <telerik:EditorSeparator />
                        <telerik:EditorTool Name="InsertOrderedList" />
                        <telerik:EditorTool Name="InsertUnorderedList" />
                        <telerik:EditorTool Name="ToggleTableBorder" />
                    </telerik:EditorToolGroup>
 
                </Tools>
            </telerik:RadEditor>

here is error text in russian: Ошибка выполнения Microsoft JScript: Предполагается наличие объекта
rough translation: Error of running Microsoft JScript:Assumed the existence of the object
What I am doing wrong?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Jul 2010, 11:21 AM
Hello Khourshed,

The following KB article could be helpful for your scenario: Error: "'Telerik' is undefined" when using OutputCache directive in a user control.

Kind regards,
Rumen
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Editor
Asked by
Khourshed Yakubov
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or