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

[Solved] Auto Draft

1 Answer 148 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Arunm
Top achievements
Rank 1
Arunm asked on 10 Dec 2007, 05:56 PM
We are using old Telerik Editor control to auto draft  content typed in the rad editor for every 6 secs. I am trying to use promotheus to do the same... its does not work... Why ? do you have sample code.. Earliest reply would be highly appericated.


<table width =100% cellpadding=2 cellspacing=2>

<tr><td><asp:Label runat="server" ID="lblJournalEntryTitle" CssClass="boldText">Entry Title</asp:Label></td></tr>

<tr><td><asp:TextBox runat="server" text="Enter Title" ID=txtJournalEntryTitle Width=99% MaxLength=499 ></asp:TextBox> </td></tr>

<tr id=rowCommunity runat="server"><td>

<table cellpadding=0 cellspacing=0 height=20%>

<tr><td nowrap><span class=boldText>Choose a Community</span>&nbsp</td>

<td align=left><asp:DropDownList id="ddlCommunity" runat="server" BackColor=Beige CssClass=boldText>

<asp:ListItem Value="-1" Enabled="false">[Select]</asp:ListItem>

</asp:DropDownList>

</td>

</tr>

</table>

</td></tr>

<tr><td>

<table cellpadding=0 cellspacing=0 width=100%>

<tr>

<td align="left"><asp:Label runat="server" ID="Label1" CssClass="boldText">Journal Entry</asp:Label></td>

<td align="left" width=60%><asp:Label ID="lblBrowserWarning" ForeColor=red Font-Size=Smaller runat="server" Visible=false></asp:Label></td>

</tr>

</table>

</td>

</tr>

<tr><td Width=90%><%--<JASON:rich_text_editor ID="txtJournalEntryDesc" Height="190px" runat="server" ShowBorderedPanelButtons="false"

ConfigurationPath="~/cuteeditor/configuration/autoconfigure/JASON_AnnouncementEditor.config" />

<rade:radeditor OnClientLoad="OnClientLoad" Skin="Default2006" runat="server" id="JournalEntryDesc" Width=99% height="230px" toolsfile="~/RadControls/Editor/BasicToolsFile.xml"

showsubmitcancelbuttons="false"></rade:radeditor>--%>

<rads:radspell id="RadSpell1" runat="server" buttontype="none" />

<telerik1:radeditor runat="server" ID="JournalEntryDesc" BackColor="white" toolsfile="~/RadControls/Editor/BasicToolsFile.xml"

Width=99% height="230px">

<tools>

<telerik1:editortoolgroup>

<telerik1:editortool name="Bold" shortcut="CTRL+B"/>

<telerik1:editortool name="Italic" shortcut="CTRL+I"/>

<telerik1:editortool name="Underline" shortcut="CTRL+U"/>

<telerik1:editortool name="StrikeThrough" />

<telerik1:editortool name="JustifyLeft" />

<telerik1:editortool name="JustifyCenter" />

<telerik1:editortool name="JustifyRight" />

<telerik1:editortool name="JustifyFull" />

<telerik1:editortool name="JustifyNone" />

<telerik1:editortool name="Indent" />

<telerik1:editortool name="Outdent" />

<telerik1:editortool name="InsertOrderedList" />

<telerik1:editortool name="InsertUnorderedList" />

<telerik1:editortool name="FontName"/>

<telerik1:editortool name="FontSize"/>

<telerik1:editortool name="spellcheck" />

</telerik1:editortoolgroup>

</tools>

</telerik1:radeditor>

</td></tr>

<tr><td align =center>

<asp:ImageButton SkinID="ImgBtnSave" ID="ibtnSubmit" runat="server" ValidationGroup="resEditor"/>

<asp:ImageButton SkinID="ImgBtnCancel" ID="btnCancel" CausesValidation="false" runat="server" />

</td></tr>

</table>

<rada:RadAjaxPanel EnabledAjax = "false" id="RadAjaxPanel1" runat="server" LoadingPanelID="AjaxLoadingPanel1">

<rada:RadAjaxTimer id="RadAjaxTimer1" runat="server" Interval="6000" AutoStart=false></rada:RadAjaxTimer>

<table id="rowWarning" runat="server" width=100%><tr><td align="center"><asp:Label id="lblWarning" runat="server" Font-Bold=true ForeColor="blue" Visible=false>Autosaving...</asp:Label> </td></tr></table>

<asp:HiddenField ID=hiddenTitle runat="server" />

<asp:HiddenField ID=hiddenDesc runat="server" />

</rada:RadAjaxPanel>

<rada:AjaxLoadingPanel id="AjaxLoadingPanel1" runat="server"><div align="center"><asp:Label id="Label2" runat="server" Font-Bold=true ForeColor="blue" Text="Autosaving..."></asp:Label></div></rada:AjaxLoadingPanel>

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 11 Dec 2007, 05:14 PM
Hi Arunm,

Thank you for your code.

For your convenience I attached to the thread a small sample project that shows how to achieve the desired behavior. The problem occurs because when you use the new editor you have to update the RadAjaxPanel and the AjaxLoadingPanel with the new ones from the Prometheus suite. This is because the classic controls by default are not designed for ASP.Net Ajax. However, you will have to use the radA:RadAjaxTimer, because it is no implemented yet to the new controls.

Note that, in your code you have set the RadAjaxTimer's property AutoStart to false - when this property is set to false the timer does not starts automatically and there is no auto save.

Please use the code as a base and extend it further if needed to completely fit your requirements. 


Kind regards,
George
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Arunm
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or