Gets or sets the paths where the RadEditor will look for documents.
Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property DocumentsPaths As String() |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As RadEditor
Dim value() As String
instance.DocumentsPaths = value
value = instance.DocumentsPaths
|
| C# | |
|---|
public string[] DocumentsPaths {get; set;} |
Return Value
A string array which contains the paths where the RadEditor will look for documents.
The default value is empty string array.
Example
This example demonstrates how to set the DocumentsPaths
,
UploadDocumentsPaths and
DeleteDocumentsPaths properties in the
ASPX or in the code-behind:
<rade:radeditor
runat="server"
id="RadEditor1"
documentspaths="~/UploadDocuments,/Documents/Temp,/Documents/Default"
uploaddocumentspaths="~/UploadDocuments,/Documents/Temp"
deletedocumentspaths="/Documents/Temp">
</rade:radeditor>
In this specific example the users of the application will see three
folders in the Document Manager dialog:
UploadDocuments,
Default and
Temp. When browsing the
UploadDocuments and
Temp folders, the Upload Document tab will be
enabled; otherwise it will be disabled. When browsing the
Temp folder, the Delete button in the Browse
Files tab will be enabled; otherwise it will be disabled. The
Documents folder will not be browsable. If you
want to allow the users to browse it you should add
"/Documents" to the DocumntsPaths list.
| Visual Basic | Copy Code |
|---|
RadEditor1.DocumentsPaths = New String(3) {"~/UploadDocuments", "/Documents/Temp", "/Documents/Default"}
RadEditor1.UploadDocumentsPaths = New String(2) {"~/UploadDocuments", "/Documents/Temp"}
RadEditor1.DeleteDocumentsPaths = New String(1) {"/Documents/Temp"}
|
| C# | Copy Code |
|---|
RadEditor1.DocumentsPaths = new string[3] {"~/UploadDocuments", "/Documents/Temp", "/Documents/Default"};
RadEditor1.UploadDocumentsPaths = new string[2] {"~/UploadDocuments", "/Documents/Temp"};
RadEditor1.DeleteDocumentsPaths = new string[1] {"/Documents/Temp"};
|
Remarks
Requirements
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also