New to Telerik Document ProcessingStart a free 30-day trial

PortfolioCollection

Updated on Apr 24, 2026

This article documents the public API for the PDF Portfolio feature. For an introduction, requirements, and a complete usage example, see the PDF Portfolio Overview.

PortfolioCollection

The PortfolioCollection class is the top-level object exposed through the RadFixedDocument.Portfolio property. It controls whether portfolio mode is active and provides access to the schema, sort settings, and view configuration.

PropertyTypeDescription
IsEnabledboolGets or sets a value indicating whether the portfolio presentation is enabled. When true, the document is presented as a PDF Portfolio in compliant viewers.
ViewModePortfolioViewModeGets or sets the initial view mode for displaying the portfolio. Default value is Details.
InitialDocumentstringGets or sets the name of the embedded file to display initially when the portfolio is opened. If null or not found, the container PDF document is displayed.
SchemaPortfolioSchemaGets the schema that defines the fields (columns) displayed for embedded files.
SortPortfolioSortGets the sort settings that define how embedded files are ordered in the portfolio.

PortfolioSchema

The PortfolioSchema class defines the fields (columns) displayed for embedded files. It implements IReadOnlyList<PortfolioField>.

PropertyTypeDescription
CountintGets the number of fields in the schema.
MethodDescription
AddFileNameField(int order)Adds a predefined field for displaying file names. Returns the created PortfolioField.
AddDescriptionField(int order)Adds a predefined field for displaying file descriptions. Returns the created PortfolioField.
AddSizeField(int order)Adds a predefined field for displaying file sizes. Returns the created PortfolioField.
AddModificationDateField(int order)Adds a predefined field for displaying modification dates. Returns the created PortfolioField.
AddCreationDateField(int order)Adds a predefined field for displaying creation dates. Returns the created PortfolioField.
AddTextField(string key, string displayName, int order)Adds a custom text field to the schema. Returns the created PortfolioField.
AddDateField(string key, string displayName, int order)Adds a custom date field to the schema. Returns the created PortfolioField.
AddNumberField(string key, string displayName, int order)Adds a custom number field to the schema. Returns the created PortfolioField.
UseDefaultSchema()Configures the schema with default fields: file name, description, size, and modification date.
Clear()Removes all fields from the schema.

PortfolioField

The PortfolioField class represents a single field (column) in a PDF Portfolio schema.

PropertyTypeDescription
KeystringGets the unique key identifying this field in the schema. This key is used to associate field values with embedded files.
DisplayNamestringGets or sets the display name shown to the user in the PDF viewer.
FieldTypePortfolioFieldTypeGets the type of data stored in this field.
OrderintGets or sets the relative display order of this field in the user interface. Fields are sorted by the viewer in ascending order of this value.
IsVisibleboolGets or sets a value indicating whether this field is visible in the user interface. Default value is true.
IsEditableboolGets or sets a value indicating whether the PDF viewer should support editing this field value. Default value is false.

PortfolioSort

The PortfolioSort class specifies how embedded files are ordered in the portfolio.

PropertyTypeDescription
SortFieldsIReadOnlyList<string>Gets the list of field keys used for sorting, in priority order. The first field is the primary sort key; subsequent fields break ties.
AscendingIReadOnlyList<bool>Gets the list of ascending flags corresponding to each sort field. True indicates ascending order; false indicates descending order.
MethodDescription
AddSortField(string fieldKey, bool ascending)Adds a sort field with the specified sort direction. The fieldKey must match a field key in the schema. Default direction is ascending.
Clear()Clears all sort fields.

CollectionItemValues

The CollectionItemValues class stores custom metadata values for an embedded file, accessible through the EmbeddedFile.CollectionItems property. Each value corresponds to a custom field defined in the portfolio schema.

MethodReturn TypeDescription
SetText(string key, string value)CollectionSubitemSets a text value for the specified field key. Returns a CollectionSubitem that supports an optional Prefix property.
SetDate(string key, DateTime value)CollectionSubitemSets a date value for the specified field key. Returns a CollectionSubitem that supports an optional Prefix property.
SetNumber(string key, double value)CollectionSubitemSets a number value for the specified field key. Returns a CollectionSubitem that supports an optional Prefix property.

CollectionSubitem

The CollectionSubitem class represents a single value entry for a collection item field. The SetText, SetDate, and SetNumber methods return a CollectionSubitem, enabling a fluent API pattern for setting the optional Prefix.

PropertyTypeDescription
PrefixstringGets or sets a prefix string displayed before the value in the PDF viewer.

PortfolioViewMode Enum

The PortfolioViewMode enum specifies the initial view mode for a PDF Portfolio.

ValueDescription
DetailsDisplays all information in the schema in a multi-column format. This mode provides the most information to the user. This is the default value.
TileDisplays each file as a small icon with a subset of schema information. This mode provides top-level information about the file attachments.
HiddenThe collection view is initially hidden, but users can still access the file list.

PortfolioFieldType Enum

The PortfolioFieldType enum defines the type of data a portfolio schema field can hold.

ValueDescription
TextA text (string) value.
DateA date/time value.
NumberA numeric value.
FileNameA built-in field representing the file name.
DescriptionA built-in field representing the file description.
SizeA built-in field representing the file size.
ModificationDateA built-in field representing the file modification date.
CreationDateA built-in field representing the file creation date.

See Also