Database with image and videos

4 posts, 0 answers
  1. Guillaume
    Guillaume avatar
    3 posts
    Member since:
    Jun 2015

    Posted 29 Apr Link to this post

    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

  2. Vessy
    Admin
    Vessy avatar
    2067 posts

    Posted 01 May Link to this post

    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.
  3. Guillaume
    Guillaume avatar
    3 posts
    Member since:
    Jun 2015

    Posted 02 May in reply to Vessy Link to this post

    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

  4. Peter Milchev
    Admin
    Peter Milchev avatar
    613 posts

    Posted 06 May Link to this post

    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.
Back to Top