New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

The base class of the FileItem and DirectoryItem classes. Contains the common functionality.

Definition

Namespace:Telerik.Web.UI.Widgets

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public abstract class FileBrowserItem

Inheritance: objectFileBrowserItem

Derived Classes: DirectoryItemFileItem

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
protected FileBrowserItem()

Properties

Gets or sets a string array containing custom values which can be used on the client when customizing the FileBrowser control.

C#
public NameValueCollection Attributes { get; }

Gets the name of the file item. The value of this property will be displayed in the FileBrowser control.

C#
public virtual string Name { get; set; }

Gets the full virtual path to the file/directory item.

C#
public virtual string Path { get; set; }

Gets the permissions on the file item.

C#
public virtual PathPermissions Permissions { get; set; }

Gets the tag of the file/directory item. Used in custom content providers (can store additional data).

C#
public string Tag { get; set; }

Methods

Utility method used when serializing. Removes the last javascript array separator from the underlying StringBuilder of writer.

C#
protected static void RemoveLastSeparator(StringWriter writer)
Parameters:writerStringWriter

Serializes the item into a javascript array. This method should be overridden only when developing a custom FileBrowser control.

C#
public abstract void Serialize(StringWriter writer)
Parameters:writerStringWriter

a StringWriter used as a target for the serialization.

Serializes the Attributes array.

C#
public void SerializeAttributes(StringWriter writer)
Parameters:writerStringWriter

Utility method used when serializing. Escapes a string for javascript.

C#
protected static void WriteJavascriptString(StringWriter writer, string s)
Parameters:writerStringWritersstring

Utility method used when serializing. Writes a javascript array separator.

C#
protected static void WriteSeparator(StringWriter writer)
Parameters:writerStringWriter