FileItem
Represents a file item in the FileBrowser control.
Definition
Namespace:Telerik.Web.UI.Widgets
Assembly:Telerik.Web.UI.dll
Syntax:
public class FileItem : FileBrowserItem
Inheritance: objectFileBrowserItemFileItem
Inherited Members
Constructors
Creates an instance of the FileItem class without setting any initial values.
public FileItem()
Creates an instance of the FileItem class.
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public FileItem(string name, string extension, long length, string location, string url, string tag, PathPermissions permissions)
The name of the file item. The value of this property will be displayed in the FileBrowser control.
extensionstringThe file extension of the file item.
lengthlongThe size of the file item in bytes.
locationstringThe virtual path to the file item (needs to be unique). When the value is string.Empty, the location is the parent's full path + the name of the file.
urlstringThe url which will be inserted into the RadEditor content area.
tagstringThe tag of the file item. Used when the virtual path must be different than the url of the item. When the value of this property is set, the FileBrowser control uses it instead of the combined virtual path.
permissionsPathPermissionsThe permissions on the file item.
Properties
Gets the virtual path of the parent directory item. When the value is string.Empty, the location is got from the item's parent.
public string Location { get; set; }
Gets the virtual path of the parent directory item. When the value is string.Empty, the location is got from the item's parent.
public override string Path { get; }
Overrides:
Methods
Serializes the file item into a javascript array. This method should be overridden only when developing a custom FileBrowser control.
public override void Serialize(StringWriter writer)
a StringWriter used as a target for the serialization.
Overrides: