Product Bundles
DevCraft
All Telerik .NET and Kendo UI JavaScript components and AI Tools in one package.
Kendo UI
Bundle of AI Tools plus four JavaScript UI libraries built natively for jQuery, Angular, React and Vue.
Build JavaScript UI
Javascript
Telerik
Build modern .NET business apps
.Net Web
Cross-Platform
Desktop
Reporting and Documents
AI for Developers & IT
Ensure AI program success
AI Coding
AI Engineering
Additional Tools
Enhance the developer and designer experience
Testing & Mocking
Debugging
UI/UX Tools
CMS
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)