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

Range Permissions

3 Answers 42 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 16 Feb 2012, 02:59 AM
Hi,

Can you please show me/us a quick code example on how to set range permissions?
I've had a look at the demo code but I'm really looking for something a little bit more simple to read.

Thank you very much for your time.

3 Answers, 1 is accepted

Sort by
0
Ivailo Karamanolev
Telerik team
answered on 17 Feb 2012, 02:14 PM
Hi,

The class you have to use to specify which user is referenced by the permission is PermissionRangeInfo. Its type can be Everyone, Group or Individual. For Group and Individual, you have to use the Name property.
The method you can use is InsertPermissionRange and is present on both RadRichTextBox and RadDocument. On the first, it works with the current selection and accepts just the PermissionRangeInfos it has to insert. On the second, it accepts the start and end position where the permission is to be inserted.
Let us know if you need additional assistance.

Kind regards,
Ivailo Karamanolev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Robert
Top achievements
Rank 1
answered on 19 Feb 2012, 05:03 AM
Hi,

It would be great if the documentation had more details on this feature. Either that or I'm not looking hard enought :)

Thanks.
0
Ivailo Karamanolev
Telerik team
answered on 20 Feb 2012, 04:03 PM
Hi,

The help articles are in the making. In the meantime, please refer to your other forum post where I've attached a blog post you can have a look at.

All the best,
Ivailo Karamanolev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
RichTextBox
Asked by
Robert
Top achievements
Rank 1
Answers by
Ivailo Karamanolev
Telerik team
Robert
Top achievements
Rank 1
Share this question
or