RadEditor for ASP.NET

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


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

 

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

Syntax

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

Return Value

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

The default filters are *.html, *.htm.

Example

This example demonstrates how to set the Template Manager dialog to display only *.xhtml files using ASPX declaration or code-behind.

<rade:radeditor
runat="server"
id="RadEditor1"
templatefilters="*.xhtml"
/>

Visual BasicCopy Code
RadEditor1.TemplateFilters = New String(1) {"*.xhtml"}
C#Copy Code
RadEditor1.TemplateFilters = New String[1] {"*.xhtml"};
    

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.

Requirements

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

See Also