Hello Anand,
When you work with headers, footers or comments you need to use the ActiveDocumentEditor of RadRichTextBox in order to manipulate the correct part of the document.
Here is how you can get the correct caret position:
I would also suggest you to use the InsertAnnotationRange of ActiveDocumentEditor, which will insert the start and end annotations in the start and end position of the selection of ActiveDocumentEditor.Document. Here is example on how to do it:
I hope this information answer your question. In case you have additional questions feel free to contact us again.
Regards,
Mihail
Telerik
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time.
Watch the videos and start improving your app based on facts, not hunches.