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

    <root>
    <modules>
    <module name="RadEditorStatistics" dockingZone="Bottom"/>
    <module name="RadEditorDomInspector" />
    <module name="RadEditorNodeInspector" />
    <module name="RadEditorHtmlInspector" visible="false" />
    </modules>
    <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"/>
    </tools>



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

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

    Hi,

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

    ASPX:
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource1" AutoGenerateEditColumn="true" AutoGenerateColumns="false">
                <MasterTableView>
                    <EditFormSettings CaptionFormatString="Edit Plan: {0}"   CaptionDataField="assessment_plan_reference" EditFormType="Template">
                        <EditColumn UniqueName="EditCommandColumn1">
                        </EditColumn>
                        <FormTemplate>
                            <table id="Table1" cellspacing="1" cellpadding="10" width="550px" border="1" >
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Week
                                        <asp:Label ID="lblWeekno" runat="server" Text='<%#Bind("OrderID")%>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Content
                                        <telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="XMLFile.xml" Height="200px" Width="500px" Skin="WebBlue" Content='<%# Bind("OrderID") %>' />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        Activity
                                        <telerik:RadEditor ID="RadEditor2" runat="server" Height="200px" Width="500px" ToolsFile="XMLFile.xml" Content='<%# Bind("CustomerID") %>'>
                                        </telerik:RadEditor>
                                    </td>
                                </tr>
                                <tr>
                                <tr>
                                    <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>
                                    </td>
                                    <br>
                                </tr>
                                <br>
                            </table>
                        </FormTemplate>
                    </EditFormSettings>
                    <Columns>
                        <telerik:GridBoundColumn DataField="OrderID" UniqueName="OrderID">
                        </telerik:GridBoundColumn>
                        <telerik:GridBoundColumn DataField="CustomerID" UniqueName="CustomerID">
                        </telerik:GridBoundColumn>
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>

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