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
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 >>