How can I determine if the current caret position in a RadRichTextBox is within a range that is editable?
2 Answers, 1 is accepted
answered on 28 Aug 2014, 09:52 AM
That depends on the approach you are using to restrict editing in your document. For example, if you are using the Document Protection feature and protection is enforced over the current document, here is how you can obtain the range where the caret is located and determine if the current user has rights to edit:
var range = this.radRichTextBox.Document.GetContainingAnnotationRanges<PermissionRangeStart>(this.radRichTextBox.Document.CaretPosition.GetCurrentInline()).First();
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.