|
Methods |
Top Previous Next |
|
Adds a linked child DbNetFile instance to the control (typically used to display files for a selected folder). Linked controls should have their properties assigned before being passed as an argument to the addLinkedControl method. There is no need to call the initialize method for linked controls as this is done automatically.
Adds a button to the toolbar. Returns A reference to the button
Binds a client-side function to an event
Initializes the control and returns the first page of data. The method should be called after all the properties have been assigned. Specifies the labels for the columns specified in setColumnTypes
setColumnProperty(columnName, propertyName, propertyValue) Assigns a property value to the specified column (or columns) Parameters
Specifies the columns that are displayed in the file control. The column types that can be selected depend on the browseMode which controls the way in which the file system is accessed. For the default browseMode of FileSystem the following column types are available.
If you are using WindowsSearch as the browseMode then you can find a list of available column types available here If you are using IndexingService as the browseMode then you can find a list of available column types available here
<script>
jQuery(document).ready( init )
function init()
{
var dbnetfile1 = new DbNetFile("dbnetfile1");
with (dbnetfile1)
{
rootFolder="~/samples/dbnetfile/files"
setColumnTypes("Icon","Name","Folder","DateCreated","Size","DateLastModified","DateLastAccessed","Thumbnail");
setColumnProperty("Name","selectable",true);
setColumnProperty("DateCreated","format","MMM yyyy");
setColumnProperty("DateLastModified","label","Last Modified");
setColumnProperty("DateLastAccessed","label","Last Accessed");
setColumnProperty("DateLastModified","format","g");
setColumnProperty("DateLastAccessed","format","dddd");
setColumnProperty("Thumbnail","label","Thumb");
initialize()
}
}
</script>
Gets a reference to the specified toolbar element. Parameters
|