GetRootDocument from CustomAnnotationRange

3 posts, 1 answers
  1. Alexander
    Alexander avatar
    20 posts
    Member since:
    Aug 2014

    Posted 28 Feb 2015 Link to this post

    Hello,

    I use InsertAnnotationRange for add CustomAnnotationRange to my document and after want to get CustomAnnotationRange associated document from on of its methods. How can I do it? 
    I have some trouble with GetRootDocument method. It sometimes returns null. I tryed call editor.UpdateEditorLayout() but nothing has changed.

    Thanks in advance.

  2. Answer
    Todor
    Admin
    Todor avatar
    168 posts

    Posted 04 Mar 2015 Link to this post

    Hi Alexander,

    I've tried to reproduce the issue, but to no avail - the correct document is returned. The GetRootDocument() method can return null if the Annotation's AnnotationMarkerLayoutBox is null or the RadDocument is not measured and arranged.
    Please try to call RadDocument's MeasureAndArrangeInDefaultSize() method instead of UpdateEditorLayout(). If the problem still exists, please try to isolate it in a sample project and send it to us.

    Looking forward to your reply.

    Regards,
    Todor
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Alexander
    Alexander avatar
    20 posts
    Member since:
    Aug 2014

    Posted 24 Mar 2015 in reply to Todor Link to this post

    Todor, thank you for your answer.
Back to Top