Skip to main content
A newer version of this page is available. .
Tab

ImageGalleryFolderSettings.ImageSourceFolder Property

Gets or sets the path to the folder that contains images displayed by the control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v19.2.dll

Declaration

[DefaultValue("")]
public string ImageSourceFolder { get; set; }

Property Value

Type Default Description
String String.Empty

A String value specifying the path to the images.

Property Paths

You can access this nested property as listed below:

Object Type Path to ImageSourceFolder
ASPxImageGallery
.SettingsFolder.ImageSourceFolder
MVCxImageGallery
.SettingsFolder.ImageSourceFolder

Remarks

The ImageSourceFolder property specifies the location of the images that are displayed in the control. The corresponding thumbnails are created automatically.

Note

If the ImageSourceFolder property is specified, the binding to a data source and ASPxImageGallery.Items collection are not in effect.

<dx:ASPxComboBox ID="cbSelectFolder" runat="server" AutoPostBack="True" SelectedIndex="0" Caption="Select Folder">
     <Items>
          <dx:ListEditItem Text="Landscapes" Value="~\Content\Images\landscapes\" />
          <dx:ListEditItem Text="People" Value="~\Content\Images\people\" />
          <dx:ListEditItem Text="Photo Gallery" Value="~\Content\Images\photo_gallery\" />
     </Items>
</dx:ASPxComboBox>
<dx:ASPxImageGallery ID="imageGallery" runat="server" Width="100%" />

For a full example, see Image Gallery - Folder Binding demo.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ImageSourceFolder property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also