Two Editors on form - one has no statistics

2 posts, 0 answers
  1. Simon Channell
    Simon Channell avatar
    17 posts
    Member since:
    Mar 2004

    Posted 05 Mar 2014 Link to this post

    As can be seen from the attached screen shot I have an input grid with a editing pop up form which contains two editor fields.
    The top one shows the statistics, but the other one says "undefined" rather than "words" and "characters". Please can you tell me how to fix this

    Edit form code is

    <EditFormSettings CaptionFormatString="Edit Plan: {0}" CaptionDataField="assessment_plan_reference"<br>                                    EditFormType="Template"><br>                                    <EditColumn UniqueName="EditCommandColumn1"><br>                                    </EditColumn><br>                                    <FormTemplate><br>                                        <table id="Table1" cellspacing="1" cellpadding="10" width="550px" border="1" style="border-collapse: collapse;<br>                                            border-width: 2px; background: white;"><br>                                            <tr><br>                                                <td><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Week<br>                                                    <asp:Label ID="lblWeekno" runat="server" Text='<%#Bind("week_number")%>' /><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Content<br>                                                    <br /><br>                                                    <telerik:RadEditor ID="RadEditor1" runat="server" Content='<%# Bind("content") %>'<br>                                                        ToolsFile="WebBlue/ToolsFile.xml" Height="300px" Width="500px" Skin="WebBlue" /><br>                                                        <br /><br>                                                    <br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <td><br>                                                    Activity<br>                                                    <br /><br>                                                    <telerik:RadEditor ID="RadEditor2" runat="server" Content='<%# Bind("activity") %>'<br>                                                        ToolsFile="WebBlue/ToolsFile.xml" Height="300px" Width="500px" Skin="WebBlue"><br>                                                       <br>                                                      </telerik:RadEditor><br>                                                </td><br>                                            </tr><br>                                            <tr><br>                                                <tr><br>                                                    <td align="right" colspan="2"><br>                                                        <asp:Button ID="btnUpdate" Text='Update' runat="server" CommandName='Update'></asp:Button>&nbsp;<br>                                                        <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False"<br>                                                            CommandName="Cancel"></asp:Button><br>                                                    </td><br>                                                </tr><br>                                        </table><br>                                    </FormTemplate><br>                                </EditFormSettings><br>

    xml file extract is

    <module name="RadEditorStatistics" dockingZone="Bottom"/>
    <module name="RadEditorDomInspector" />
    <module name="RadEditorNodeInspector" />
    <module name="RadEditorHtmlInspector" visible="false" />
    <tools name="MainToolbar">
    <tool name="AjaxSpellCheck"/>
    <tool name="ImageManager" shortcut="CTRL+G"/>
    <tool name="AbsolutePosition" />
    <tool separator="true"/>
    <tool name="LinkManager" shortcut="CTRL+K"/>
    <tool name="Unlink" shortcut="CTRL+SHIFT+K"/>
    <tool separator="true"/>
    <tool name="FindAndReplace" shortcut="CTRL+F"/>
    <tool name="SelectAll" shortcut="CTRL+A"/>
    <tool name="Cut" />
    <tool name="Copy" shortcut="CTRL+C"/>
    <tool name="Paste" shortcut="CTRL+V"/>
    <tool name="PasteStrip"/>
    <tool separator="true"/>
    <tool name="Undo" shortcut="CTRL+Z"/>
    <tool name="Redo" shortcut="CTRL+Y"/>
    <tool separator="true"/>
    <tool name="Bold" shortcut="CTRL+B"/>
    <tool name="Italic" shortcut="CTRL+I"/>
    <tool name="Underline" shortcut="CTRL+U"/>

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 05 Mar 2014 in reply to Simon Channell Link to this post


    Please have a look into the sample code snippet which works fine at my end.

    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateEditColumn="true" AutoGenerateColumns="false">
                    <EditFormSettings CaptionFormatString="Edit Plan: {0}"   CaptionDataField="assessment_plan_reference" EditFormType="Template">
                        <EditColumn UniqueName="EditCommandColumn1">
                            <table id="Table1" cellspacing="1" cellpadding="10" width="550px" border="1" >
                                        <asp:Label ID="lblWeekno" runat="server" Text='<%#Bind("OrderID")%>' />
                                        <telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="XMLFile.xml" Height="200px" Width="500px" Skin="WebBlue" Content='<%# Bind("OrderID") %>' />
                                        <telerik:RadEditor ID="RadEditor2" runat="server" Height="200px" Width="500px" ToolsFile="XMLFile.xml" Content='<%# Bind("CustomerID") %>'>
                                    <td align="right" colspan="2">
                                        <asp:Button ID="btnUpdate" Text='Update' runat="server" CommandName='Update'></asp:Button>
                                        <asp:Button ID="btnCancel" Text="Cancel" runat="server" CausesValidation="False" CommandName="Cancel"></asp:Button>
                        <telerik:GridBoundColumn DataField="OrderID" UniqueName="OrderID">
                        <telerik:GridBoundColumn DataField="CustomerID" UniqueName="CustomerID">

    Please have a look into the attached image.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top