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

Cursor does not goes to end of text after inserting image

3 Answers 60 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Kiran
Top achievements
Rank 1
Kiran asked on 06 Sep 2011, 01:57 PM
Hello,

I am using RadRichTextBox in which RadDocument with Paged LayoutMode and Section is used.
When I enter text, Cursor will be at the end.
When I insert image into RichTextBox
Image will be displayed after the ‘Text’.

My problem is that, When I Click the mouse on last character in the text or then press end key.
Cursor remains one character before end of text/last character.
Please find attached images for your reference.

Here is the code:

<telerik:RadRichTextBox VerticalAlignment="Stretch" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"  
x:Name="radRichTextBoxFullText" Grid.Row="1" BorderBrush="DarkGray" BorderThickness="1" FontSize="5" Foreground="Red"  Grid.RowSpan="2" IsSpellCheckingEnabled="False" Width="700" Height="200">
                                   <telerik:RadRichTextBox.Document>
                                       <telerik:RadDocument LayoutMode="Paged" DefaultPageLayoutSettings="650,500">
                                           <telerik:Section PageMargin="5,5,5,5">
                                               <telerik:Paragraph FontSize="10">
                                               </telerik:Paragraph>
                                           </telerik:Section>
                                       </telerik:RadDocument>
                                   </telerik:RadRichTextBox.Document>
                                     
                                   <Interactivity:Interaction.Triggers>
                                       <Interactivity:EventTrigger EventName="LostFocus">
                                           <TriggerActions:MapEventToCommand Command="{Binding OnFullTextLostFocus}"></TriggerActions:MapEventToCommand>
                                       </Interactivity:EventTrigger>
                                       <Interactivity:EventTrigger EventName="DocumentContentChanged">
                                           <TriggerActions:MapEventToCommand Command="{Binding OnAnnouncementUpdated}"></TriggerActions:MapEventToCommand>
                                       </Interactivity:EventTrigger>
                                   </Interactivity:Interaction.Triggers>
                               </telerik:RadRichTextBox>

 

 Please help me in this case.

3 Answers, 1 is accepted

Sort by
0
Boby
Telerik team
answered on 12 Sep 2011, 08:45 AM
Hello Kiran,
Unfortunately we cannot reproduce the issue. Could you please try to remove the attached triggers and check if this solves the problem? If not, please open a support ticket with attached sample project reproducing the problem, so we can investigate it further.

All the best, Boby
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Kiran
Top achievements
Rank 1
answered on 22 Sep 2011, 09:10 AM
Hi Boby,

Thanks for you reply.

I checked after removing attached triggers to RadRichTextBox. but, still it is not working.

Thanks in advance.
Kiran Ghanwat
0
Boby
Telerik team
answered on 28 Sep 2011, 10:00 AM
Hello Kiran,
We managed to reproduce the issue. We will add it to our to-do list and will try to fix it for some of the next releases. The points in your account have been updated in appreciation for this bug report.

Don't hesitate to contact us if you have other questions.


All the best,
Boby
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Kiran
Top achievements
Rank 1
Answers by
Boby
Telerik team
Kiran
Top achievements
Rank 1
Share this question
or