This question is locked. New answers and comments are not allowed.
Hi,
I would like to insert one or more readonly spans into the document at runtime when the user clicks on a button. I've tried few solutions but none of them worked.
First i've tried the InsertInline method of the RichTextBox (and later the radDocument version) but i got an exception: InvalidCast with message unable to convert ReadOnlyRangeEnd to AnnotationMarkerStart. After this i have tried to insert only the spans and then use the function InsertReadOnlyRange but i got an exception again with message this inline is not the part of the document. So i've tried to call an UpdateEditorLayout, UpdateLayout and every update method before i used the InsertReadonlyRange but i got the same exception every time.
The question is how can i insert a readonly text responding to a button click event?
Reagrds
Tamas
I would like to insert one or more readonly spans into the document at runtime when the user clicks on a button. I've tried few solutions but none of them worked.
First i've tried the InsertInline method of the RichTextBox (and later the radDocument version) but i got an exception: InvalidCast with message unable to convert ReadOnlyRangeEnd to AnnotationMarkerStart. After this i have tried to insert only the spans and then use the function InsertReadOnlyRange but i got an exception again with message this inline is not the part of the document. So i've tried to call an UpdateEditorLayout, UpdateLayout and every update method before i used the InsertReadonlyRange but i got the same exception every time.
The question is how can i insert a readonly text responding to a button click event?
Reagrds
Tamas