Skip to main content

TdxPSExplorerItem.CanLoadData Method

Indicates whether the report item’s data can be loaded into the preview window.

Declaration

function CanLoadData: Boolean; virtual;

Returns

Type
Boolean

Remarks

The CanLoadData method is automatically called by explorer components when an end-users tries to load an item’s data. End-users can double-click on an item or press the Ctrl+Enter key combination while an item is selected to load the item’s data. If the CanLoadData method returns True, the explorer component loads the item’s data and shows the report preview, otherwise nothing happens.

As implemented in the TdxPSExplorerItem class, the CanLoadData method returns False if the item has invalid data or is currently loaded. The latter check is used to avoid reloading the same item’s data.

See Also