This is a migrated thread and some comments may be shown as answers.

Database with image and videos

3 Answers 132 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 29 Apr 2019, 03:11 PM

Hello,

I have a database with links to images and videos.

I would like to bind them into a single radimagegallery.

Is it possible ? Like the example in : https://demos.telerik.com/aspnet-ajax/image-gallery/examples/functionality/templates/defaultvb.aspx but with a database.

How can i do this ?

Thanks a lot

3 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 01 May 2019, 06:22 AM
Hi Guillaume,

Yes, it is possible to bind RadImageGallery to a data base, you can see detailed information on how to achieve that here:
https://docs.telerik.com/devtools/aspnet-ajax/controls/imagegallery/data-binding/server-side/declarative-data-source

Regards,
Vessy
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Guillaume
Top achievements
Rank 1
answered on 02 May 2019, 06:39 AM

Hi Vessy,

Thanks for reply, but i know it's possible to bind RadImageGallery to a data base. 

If i have only images it's working fine, but i want to bind a table where i have image AND Videos. 

And that's the problem, i dont know how to bind both in the same time.

Thanks in advance

0
Peter Milchev
Telerik team
answered on 06 May 2019, 01:29 PM
Hello Guillaume,

Generally, the ImageGallery does not support template items when it is data bound: http://www.telerik.com/community/forums/how-can-i-add-dynamic-templated-items-to-imagegallery

One option to achieve that is to create items programmatically based on the data source as explained here: https://www.telerik.com/forums/how-can-i-add-dynamic-templated-items-to-imagegallery

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ImageGallery
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Guillaume
Top achievements
Rank 1
Peter Milchev
Telerik team
Share this question
or