Caretpositioning / PermissionRangeStart

2 posts, 0 answers
  1. JoRoSch
    JoRoSch avatar
    8 posts
    Member since:
    Dec 2011

    Posted 13 Dec 2013 Link to this post

    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>
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 18 Dec 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top