RadEditor for ASP.NET

RadEditor Send comments on this topic.
DocumentsFilters Property
See Also  Example
Telerik.WebControls Namespace > RadEditor Class : DocumentsFilters Property


Gets or sets the file extension filters that control which files are shown in the Document Manager dialog.   

 

Namespace: Telerik.WebControls
Assembly: RadEditor (in RadEditor.dll)

Syntax

Visual Basic (Declaration) 
Public Property DocumentsFilters As String()
Visual Basic (Usage)Copy Code
Dim instance As RadEditor
Dim value() As String
 
instance.DocumentsFilters = value
 
value = instance.DocumentsFilters
C# 
public string[] DocumentsFilters {get; set;}

Return Value

A string array which contains the file extension filters that control which files are shown in the Document Manager dialog.

The default filters are *.*.

Example

This example demonstrates how to set the Document Manager dialog to display only *.doc and *.xls files using ASPX declaration or code-behind.

<rade:radeditor
runat="server"
id="RadEditor1"
documentsfilters="*.doc,*.xls"
/>

Visual BasicCopy Code
RadEditor1.DocumentsFilters = New String(2) {"*.doc", "*.xls"}
C#Copy Code
RadEditor1.DocumentsFilters = New String[2] {"*.doc", "*.xls"};
    

Remarks

The following wildcard characters are permitted in a filter string:
* - Zero or more characters.
? - Exactly one character.

Note: in the ASPX declaration the filters are comma separated string; in the code behind they are string array.

Note: From version 6.0 the default value is changed from *.doc;*.txt to *.*

Requirements

Platforms: Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also