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

Caretpositioning / PermissionRangeStart

1 Answer 18 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
JoRoSch
Top achievements
Rank 1
JoRoSch asked on 13 Dec 2013, 03:24 PM
Dear support,
in our code we have paragraphs consisting of two PermissionRangeStart and a PermissionRangeEnd tags (header and text), each of them encapsulating a span. (see example below).
When the user tries to position the caret at the beginning of the "text" span he is facing a strange behaviour concerning the positioning of the caret at the beginning of the line. When hitting "Pos1" key the caret comes out to be in the previous span (in the header). Pressing the "Arrow right" key does not move the caret (visibly) but then the user can type in the correct span.
When positioning the caret at the beginning of the line via mouse we are having an unpredictable situation whether the user is in the header span or the text span.

How can we solve this? 
Thanks in advance!

Jo

<t:Paragraph FirstLineIndent="0" LeftIndent="0" 
xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents"><BR>      
<t:Paragraph.ParagraphSymbolPropertiesStyle><BR>        
<s:SpanProperties FontFamily="Arial" FontWeight="Bold" 
/><BR>      
</t:Paragraph.ParagraphSymbolPropertiesStyle><BR>      
<custom1:NamedPermissionRangeStart AnnotationID="11" 
InternalKey="CLINICALQUESTION" 
Name="TEMPLATE_FRAGMENT_TITLENAME_CLINICALQUESTION_1" 
Type="Header"><BR>        
<t:PermissionRangeInfo Name="EditorTemplateAdmin" Type="Individual" 
/><BR>      
</custom1:NamedPermissionRangeStart><BR>      
<t:Span FontFamily="Arial" FontWeight="Bold" Text="Fragestellung¬¨" 
/><BR>      <custom1:NamedPermissionRangeEnd 
AnnotationID="11" /><BR>      
<custom1:NamedPermissionRangeStart AnnotationID="12" 
InternalKey="CLINICALQUESTION" 
Name="TEMPLATE_FRAGMENT_TEXTNAME_CLINICALQUESTION_1" 
Type="Text"><BR>        
<t:PermissionRangeInfo Name="ReportAuthor" Type="Group" 
/><BR>      
</custom1:NamedPermissionRangeStart><BR>      
<t:Span FontFamily="Arial" FontWeight="Bold" Text=" ¬¨" 
/><BR>      <custom1:NamedPermissionRangeEnd 
AnnotationID="12" /><BR>    </t:Paragraph>

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 18 Dec 2013, 04:01 PM
Hi Jo,

Thank you for contacting us with this! 

I confirmed the issue you are observing using the default permission ranges and logged it for further revision. Your Telerik points were also updated in appreciation of the report.

Could you please share the code of the custom permissions you created, more precisely the values of the SkipPositionBefore and SkipPositionAfter properties? As the positioning issue is most likely related to them we might be able to provide a workaround for this.

I'm looking forward to your reply.

Regards,
Petya
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RichTextBox
Asked by
JoRoSch
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or