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

Problem with RadEditor insertion point jumping to end of line

3 Answers 162 Views
Editor
This is a migrated thread and some comments may be shown as answers.
John Mann
Top achievements
Rank 1
John Mann asked on 27 May 2015, 09:30 PM

I have a RadEditior embedded in RadGrid. I've been getting frequent complaints from users that the cursor jumps around when they are trying to edit previously entered text. I've been able to recreate part of the problem by pressing the spacebar twice. The first space is inserted normally, the second space is inserted as an   and then the cursor jumps to the end of the current line. Once this happens nothing can be typed without the insertion point jumping to the end. Switching to html mode and back will temporarily correct the problem. Strange behavior will also occur when the insert key is pressed and the control goes into overwrite mode.

Here is the grid with its RadEditor. This is all located in a RadWindow.

<telerik:RadGrid ID="rgJudicialNotes" runat="server" AutoGenerateColumns="False" AllowSorting="True" CellSpacing="0" GridLines="None" Height="455px">
  <MasterTableView CommandItemDisplay="Top" CommandItemSettings-AddNewRecordText="Add Note" CommandItemSettings-ShowRefreshButton="true" TableLayout="Fixed" EditMode="EditForms" DataKeyNames="note_nr,note">
    <EditFormSettings EditFormType="Template">
      <FormTemplate>
        <div style="position: relative; height: 215px; width: 800px;">
          <telerik:RadEditor ID="reNote" Runat="server" ResolvedRenderMode="Classic" Width="795px" Height="165px" NewLineMode="Br">
            <tools>
              <telerik:EditorToolGroup Tag="MainToolbar">
                <telerik:EditorSplitButton Name="Undo" />
                <telerik:EditorSplitButton Name="Redo" />
                <telerik:EditorTool Name="Cut" />
                <telerik:EditorTool Name="Copy" />
                <telerik:EditorTool Name="Paste" ShortCut="CTRL+V / CMD+V" />
              </telerik:EditorToolGroup>
              <telerik:EditorToolGroup Tag="Formatting">
                <telerik:EditorTool Name="Bold" />
                <telerik:EditorTool Name="Italic" />
                <telerik:EditorTool Name="Underline" />
                <telerik:EditorTool Name="StrikeThrough" />
                <telerik:EditorSplitButton Name="BackColor" />
              </telerik:EditorToolGroup>
            </tools>
            <Content>
            </Content>
          </telerik:RadEditor>
          <asp:ImageButton ID="ibSave" runat="server" ImageUrl="~/Images/Save.png" CommandName='<%# (Container is GridEditFormInsertItem) ? "PerformInsert" : "Update" %>' style="position: absolute; left: 10px; top: 180px;" />
          <asp:ImageButton ID="ibCancel" runat="server" ImageUrl="~/Images/Cancel.png" CommandName="Cancel" style="position: absolute; left: 70px; top: 180px;" />
        </div>
      </FormTemplate>
    </EditFormSettings>
    <SortExpressions>
      <telerik:GridSortExpression FieldName="createdate" SortOrder="Descending" />
    </SortExpressions>
    <Columns>
      <telerik:GridEditCommandColumn ButtonType="ImageButton" HeaderStyle-Width="30px" ItemStyle-HorizontalAlign="Center" EditImageUrl="~/Images/Edit.png" UniqueName="gecEdit" />
      <telerik:GridBoundColumn DataField="createdate" HeaderText="Entry Date" ReadOnly="true" DataFormatString="{0:MM/dd/yyyy hh:mm}" HeaderStyle-Width="110px" UniqueName="gbc_create_date" />
      <telerik:GridBoundColumn DataField="note" HeaderText="Note" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Left" HeaderStyle-Width="500px" MaxLength="4096" UniqueName="gbc_note" />
      <telerik:GridBoundColumn DataField="empl_last_nme" HeaderText="Judge" ReadOnly="true" HeaderStyle-Width="80px" UniqueName="gbc_empl_last_nme" />
    </Columns>
  </MasterTableView>
  <ClientSettings><Scrolling AllowScroll="true" /></ClientSettings>
</telerik:RadGrid>

 We are using IE9, Windows 7, and version 2015.1.401.40 of the Telerik controls.

Any suggestions on how to correct this behavior?

 

Thanks,

John

 

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 01 Jun 2015, 06:43 AM
Hello John,

I tested with a similar configuration in this online demo (http://demos.telerik.com/aspnet-ajax/editor/examples/edittemplate/defaultcs.aspx), but I was unable to encounter the issues described. Here you are a screencast that shows my tests—http://screencast.com/t/l0wg6TKmmAH.

Let me know if there are any additional steps required to reproduce the issue.

Regards,
Ianko
Telerik
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 Feedback Portal and vote to affect the priority of the items
0
ramsey
Top achievements
Rank 1
answered on 29 Jun 2015, 07:39 PM

We noticed the same frustrating "cursor moving to end-of-line" issue. Reverting the Telerik version from 2015.1.401.40 back to 2013.3.1324.40 resolved it.

 

0
Ianko
Telerik team
answered on 30 Jun 2015, 06:40 AM
Hello John and Ramsey,

If the problem is reproducible under IE7 and 8, this is logged as a bug report. You can follow additional details and the task's progress here—http://feedback.telerik.com/Project/108/Feedback/Details/161544.

Regards,
Ianko
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Editor
Asked by
John Mann
Top achievements
Rank 1
Answers by
Ianko
Telerik team
ramsey
Top achievements
Rank 1
Share this question
or