This demo shows two ways of Declarative and Programmatic data-binding of RadImageGallery.
When using Declarative DataSource you will need to specify a DataSourceID
to the data source control and the required DataImageField
, which represents the images into the content area of the ImageGallery. The control also implements optional properties, which allow you to specify additional information.
If you do not specify a DataThumbnailField
property, the thumbnail images will be created automatically from the content area images. The same goes for DataTitleField
properties. If they are not specified the images will not have accordingly Title and Description.
The only difference between Declarative DataSource and Programmatic Data-binding is that you should specify the NeedDataSource event and assign the DataSource property of the ImageGallery instead of specifying DataSourceID.