Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
Hi to all,
I want to add images and videos to ImageGallery.
I've read the article https://demos.telerik.com/aspnet-ajax/image-gallery/examples/functionality/templates/defaultcs.aspx but I have to add videos from code behind in VB. Can anyone tell me how?
Thanks
class
ImageGalleryContentTemplate : ITemplate
{
public
String BackgroundImage {
get
;
set
; }
String HTMLTemplate {
void
InstantiateIn(Control container)
container.Controls.Add(
new RadMediaPlayer
()
);
}
protected
Page_Init(
object
sender, EventArgs e)
ImageGalleryTemplateItem igti =
new
ImageGalleryTemplateItem();
ImageGalleryContentTemplate template =
ImageGalleryContentTemplate();
igti.ContentTemplate = template;
RIG.Items.Add(igti);
Hi Maria,
can you post an example in VB?
Thanks a lot
Private
Class
ImageGalleryContentTemplate
Implements
ITemplate
Public
Property
BackgroundImage()
As
[
String
]
Get
Return
m_BackgroundImage
End
Set
m_BackgroundImage = Value
HTMLTemplate()
m_HTMLTemplate
m_HTMLTemplate = Value
Sub
InstantiateIn(container
Control)
New
RadMediaPlayer())
Protected
Page_Init(sender
Object
, e
EventArgs)
Dim
igti
ImageGalleryTemplateItem()
template
ImageGalleryContentTemplate()
igti.ContentTemplate = template
RIG.Items.Add(igti)