FileBrowserItem
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:
public abstract class FileBrowserItem
Inheritance: objectFileBrowserItem
Derived Classes:
Inherited Members
Constructors
protected FileBrowserItem()
Properties
Gets or sets a string array containing custom values which can be used on the client when customizing the FileBrowser control.
public NameValueCollection Attributes { get; }
Gets the name of the file item. The value of this property will be displayed in the FileBrowser control.
public virtual string Name { get; set; }
Gets the full virtual path to the file/directory item.
public virtual string Path { get; set; }
Gets the permissions on the file item.
public virtual PathPermissions Permissions { get; set; }
Methods
Utility method used when serializing. Removes the last javascript array separator from the underlying StringBuilder of writer.
Serializes the item into a javascript array. This method should be overridden only when developing a custom FileBrowser control.
public abstract void Serialize(StringWriter writer)
a StringWriter used as a target for the serialization.
Serializes the Attributes array.
Utility method used when serializing. Escapes a string for javascript.
protected static void WriteJavascriptString(StringWriter writer, string s)
Utility method used when serializing. Writes a javascript array separator.