|
File Column Properties |
Top Previous Next |
|
Specifies the type of information the column should display. If Windows Search or Indexing Service is available on the server you can use the WindowsSearch or IndexingService value and then specify one of the extended set of properties available in WindowsSearchColumnType and IndexingServiceColumnType,
<DNL:DbNetFile runat="server" id="DbNetFile1" BrowseMode="WindowsSearch" > <FileColumns> <DNL:FileColumn ColumnType=Icon /> <DNL:FileColumn ColumnType=Name Label="Name" Selectable="true"/> <DNL:FileColumn ColumnType=DateCreated Label="Created"/> <DNL:FileColumn ColumnType=Thumbnail Label="Thumb"/> <DNL:FileColumn ColumnType=WindowsSearch Label="Image Width" WindowsSearchColumnType=Image_HorizontalSize /> <DNL:FileColumn ColumnType=WindowsSearch Label="Image Height" WindowsSearchColumnType=Image_VerticalSize /> </FileColumns> <DNL:DbNetFile> Run Sample Specifies the text label for the column that will be displayed as the column heading and also the search dialog label. Specifies whether the column should be displayed when browsing a folder. Specifies a format mask for a date-time or numeric value. Values are the standard .NET date-time and numeric formatting strings. <DNL:DbNetFile id="DbNetFile1" RootFolder="~/samples/dbnetfile/files" Search="true" runat="server"> <FileColumns> <DNL:FileColumn ColumnType="Icon" Label=""/> <DNL:FileColumn ColumnType="Name" Label="Name" Selectable="true"/> <DNL:FileColumn ColumnType="Folder" Label="Folder"/> <DNL:FileColumn ColumnType="DateCreated" Label="Created" Format="MMM yyyy"/> <DNL:FileColumn ColumnType="Size" Label="Size"/> <DNL:FileColumn ColumnType="DateLastModified" Label="Last Modified" Format="g"/> <DNL:FileColumn ColumnType="DateLastAccessed" Label="Last Accessed" Format="dddd"/> <DNL:FileColumn ColumnType="Thumbnail" Label="Thumb"/> </FileColumns> </DNL:DbNetFile> Run Sample Specifies an Indexing Service property from the list of values defined here Specifies whether the file property can be searched against in the search dialog Specifies whether the file property is displayed in the search results. Specifies whether the column value is to be converted into a hyperlink that can be clicked to select the file. Specifies an Indexing Service property from the list of values defined here <DNL:DbNetFile runat="server" id="DbNetFile1" BrowseMode="WindowsSearch" > <FileColumns> <DNL:FileColumn ColumnType=Icon /> <DNL:FileColumn ColumnType=Name Label="Name" Selectable="true"/> <DNL:FileColumn ColumnType=DateCreated Label="Created"/> <DNL:FileColumn ColumnType=Thumbnail Label="Thumb"/> <DNL:FileColumn ColumnType=WindowsSearch Label="Image Width" WindowsSearchColumnType=Image_HorizontalSize /> <DNL:FileColumn ColumnType=WindowsSearch Label="Image Height" WindowsSearchColumnType=Image_VerticalSize /> </FileColumns> </DNL:DbNetFile> |