Gets or sets the paths where the RadEditor will look for images.
Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)
Syntax
| Visual Basic (Declaration) | |
|---|
Public Property ImagesPaths As String() |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As RadEditor
Dim value() As String
instance.ImagesPaths = value
value = instance.ImagesPaths
|
| C# | |
|---|
public string[] ImagesPaths {get; set;} |
Return Value
A string array which contains the paths where the RadEditor will look for images.
The default value is empty string array.
Example
This example demonstrates how to set the ImagesPaths ,
UploadImagesPaths and
DeleteImagesPaths properties in the ASPX or in
the code-behind:
<rade:radeditor
runat="server"
id="RadEditor1"
imagespaths="~/UploadImages,/Images/Temp,/Images/Default"
uploadimagespaths="~/UploadImages,/Images/Temp"
deleteimagespaths="/Images/Temp">
</rade:radeditor>
In this specific example the users of the application will see three
folders in the Image Manager dialog:
UploadImages,
Default and
Temp.
When browsing the UploadImages and
Temp folders, the Upload Image 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 Images folder will not be browsable.
If you want to allow the users to browse it you should add
"/Images" to the ImagesPaths.
| Visual Basic | Copy Code |
|---|
RadEditor1.ImagesPaths = New String(3) {"~/UploadImages", "/Images/Temp", "/Images/Default"}
RadEditor1.UploadImagesPaths = New String(2) {"~/UploadImages", "/Images/Temp"}
RadEditor1.DeleteImagesPaths = New String(1) {"/Images/Temp"}
|
| C# | Copy Code |
|---|
RadEditor1.ImagesPaths = new string[3] {"~/UploadImages", "/Images/Temp", "/Images/Default"};
RadEditor1.UploadImagesPaths = new string[2] {"~/UploadImages", "/Images/Temp"};
RadEditor1.DeleteImagesPaths = new string[1] {"/Images/Temp"};
|
Remarks
Requirements
Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also