This is a migrated thread and some comments may be shown as answers.

Protecting parts of document

3 Answers 99 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
nodir
Top achievements
Rank 1
nodir asked on 17 Mar 2011, 04:01 AM
Hi 

Is following possible with telerik wpf richtextbox? Allowing only parts of document to be updateable?

http://office.microsoft.com/en-us/help/allow-changes-to-parts-of-a-protected-document-HP010082301.aspx

Thanks!

Nodir Yuldashev

3 Answers, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 18 Mar 2011, 02:33 PM
Hello nodir,

Currently this features is not available out of the box in RadRichTextBox. We have it in our to-do list and we are considering it for the next major release.

Besides that It should be possible to achieve some level of restriction for editing document parts using the API of RadRichTextBox and it depends on the scenario. Can you please share a bit more detail about what are you trying to achieve?

Greetings,
Mike
the Telerik team
0
nodir
Top achievements
Rank 1
answered on 18 Mar 2011, 04:58 PM
Hi Mike,

I have predefined data model and am generating RadRichTextBox document using xaml document format and data binding.

Like this:

<t:Paragraph SpacingAfter="13.3333330154419" TextAlignment="Justify"  MyAttachedPropertiesClass.ModelPropertyPath="Name">
      <t:Span FontFamily="Calibri" Text="{Binding Name} " />
</t:Paragraph>

This way I'm filling document with data from my model through binding and also am tagging Paragraph element with attached property so later I can retreive its content. But if user deletes Paragraph element, I won't be able to retrieve information I need.

Thats why I need locking/protecting parts of doc for example if I can lock the Paragraph element and allow only content to be editable then I can use above technique to retrieve user input.

would be very helful if you could give me example/code where some parts of a document readonly and others not.

Thanks!

Nodir Yuldashev
0
Ivailo Karamanolev
Telerik team
answered on 22 Mar 2011, 04:49 PM
Hi nodir,

Unfortunately, exactly what you're trying to do is not possible currently. The introduction of true read-only regions in the document will enable you to do things like this, but I can't give you specific information on this as it is not scheduled yet.

Regards,
Ivailo
the Telerik team
Tags
RichTextBox
Asked by
nodir
Top achievements
Rank 1
Answers by
Mike
Telerik team
nodir
Top achievements
Rank 1
Ivailo Karamanolev
Telerik team
Share this question
or