Find if caret in document or in header/footer

2 posts, 0 answers
  1. Shahed
    Shahed avatar
    1 posts
    Member since:
    Nov 2015

    Posted 12 Nov 2015 Link to this post


    I am using RadDocument. When user double clicks on the header section, the caret goes to header section. Is there anyway for me to find out if my caret is in header/footer section or in the document body section?


    Kind Regards,



  2. Todor
    Todor avatar
    168 posts

    Posted 17 Nov 2015 Link to this post

    Hi Shahed,

    In order to obtain where the editor position is, you could subscribe to the RadRichTextBox's ActiveDocumentEditorChanged event. Later, in the event handler you could check what is the DocumentEditorType from the ActiveDocumentEditorChangedEventArgs event arguments. 

    I hope this helps.
    If you have further questions, please get back to us again.

    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
Back to Top