Telerik.Web.UI.Widgets.FileItem
Represents a file item in the FileBrowser control.
Inheritance Hierarchy
- System.Object
- Telerik.Web.UI.Widgets.FileBrowserItem
- Telerik.Web.UI.Widgets.FileItem
Properties
Attributes NameValueCollection
Gets or sets a string array containing custom values which can be used on the client when customizing the FileBrowser control.
Extension String
Gets the file extension of the file item.
Length Int64
Gets the size of the file item in bytes.
Location String
Gets the virtual path of the parent directory item. When the value is string.Empty, the location is got from the item's parent.
Name String
Gets the name of the file item. The value of this property will be displayed in the FileBrowser control.
Path String
Gets the virtual path of the parent directory item. When the value is string.Empty, the location is got from the item's parent.
Path String
Gets the full virtual path to the file/directory item.
Permissions PathPermissions
Gets the permissions on the file item.
Tag String
Gets the tag of the file/directory item. Used in custom content providers (can store additional data).
Url String
Gets the url which will be inserted into the RadEditor content area.
Methods
RemoveLastSeparator
Utility method used when serializing. Removes the last javascript array separator from the underlying StringBuilder of writer.
Returns
System.Void
Serialize
Serializes the file item into a javascript array. This method should be overridden only when developing a custom FileBrowser control.
Parameters
writer System.IO.StringWriter
a StringWriter used as a target for the serialization.
Returns
System.Void
Serialize
Serializes the item into a javascript array. This method should be overridden only when developing a custom FileBrowser control.
Parameters
writer System.IO.StringWriter
a StringWriter used as a target for the serialization.
Returns
System.Void
SerializeAttributes
Serializes the Attributes array.
Parameters
writer System.IO.StringWriter
Returns
System.Void
WriteJavascriptString
Utility method used when serializing. Escapes a string for javascript.
Returns
System.Void
WriteSeparator
Utility method used when serializing. Writes a javascript array separator.
Returns
System.Void