I'm trying to connect my telerik:RadImageGallery to a sql server datasource via a web service.
When the page loads the RadImageGallery lists the number of images (eg. Item 1 of 4) but it doesn't display the images.
My imgURL field returns a value with this full url path (eg. http://blue.kingcounty.com/Assessor/eRealProperty/MediaHandler.aspx?Media=631204 )
Any idea why the images won't display on the page?
Thanks in advance.
Kevin
<telerik:RadImageGallery ID="RadImageGallery1" runat="server" RenderMode="Lightweight" BackColor="White"
ImageUrl="imgURL" DataDescriptionField="ImageDesc" DataTitleField="TitleDesc"
OnNeedDataSource="RadImageGallery1_NeedDataSource">
Protected Sub RadImageGallery1_NeedDataSource(ByVal sender As Object, ByVal e As ImageGalleryNeedDataSourceEventArgs)
Dim dsParcelImageList As New DataSet
Dim wsRealProp As New ws_AsRealProp
dsParcelImageList = wsRealProp.ParcelImageList(hf_parcelNbr.Value)
Try
If Not dsParcelImageList Is Nothing Then
RadImageGallery1.DataSource = dsParcelImageList
End If
Finally
End Try
dsParcelImageList = Nothing
End Sub
Hello, I am using 2015.3.930.40.
I added two ImageGalleryTemplateItem and now the RadImageGallery posts back on each forward and back. Can I prevent postback? If I do need to postback, how can I keep the animation between items? Thank you.
Hi,
How can i add dynamic templated items to ImageGallery?
I define a template:
class
ImageGalleryContentTemplate : ITemplate
{
public
String BackgroundImage {
get
;
set
; }
public
String HTMLTemplate {
get
;
set
; }
public
void
InstantiateIn(Control container)
{
String strC =
""
;
if
(BackgroundImage !=
""
)
strC = String.Format(
"<div style=\"background-image: url({0})\">{1}</div>"
, BackgroundImage, HTMLTemplate);
else
strC = HTMLTemplate;
container.Controls.Add(
new
LiteralControl(strC));
}
}
I tried to use it following way:
ImageGalleryTemplateItem igti =
new
ImageGalleryTemplateItem();
ImageGalleryContentTemplate template =
new
ImageGalleryContentTemplate();
template.BackgroundImage = strBigImgUrl;
template.HTMLTemplate = strTemplate;
template.InstantiateIn(igti);
template.InstantiateIn doesn't accept ImageGalleryTemplateItem and if i use InstantiateIn(ImageGalleryTemplateItem container) instead of InstantiateIn(Control container), i don't use container.Controls.Add(...), because ImageGalleryTemplateItem hasn't .Controls() property.
if I use igti.ContentTemplate = template instead of template.InstantiateIn(igti) project running without errors, but other slides than first not showing.
Please look at this page: http://v2.gom.com.tr/anasayfa
Just below the menu;
- First slider done with RadRotator. Customer wants selector dots and seamless animation.
- Second slider with RadImageGallery, which has this problem (running with igti.ContentTemplate = template).
- Third slider with RadImageGallery, but has only images and working perfectly. But customer wants texts and link button.
How can i add dynamic templated items to ImageGallery OR how to handle it with RadRotator?
<
telerik:RadImageGallery
ID
=
"galRoom"
runat
=
"server"
Width
=
"100%"
BackColor
=
"#F4F4F4"
Culture
=
"it-IT"
DisplayAreaMode
=
"Thumbnails"
>
<
ThumbnailsAreaSettings
Height
=
"608px"
ThumbnailHeight
=
"150"
ThumbnailWidth
=
"150"
ThumbnailsSpacing
=
"2"
/>
<
ImageAreaSettings
ShowDescriptionBox
=
"False"
Height
=
"730"
/>
<
ToolbarSettings
ItemsCounterFormat
=
"Fotografia {0} di {1}"
/>
<
ClientSettings
>
<
AnimationSettings
SlideshowSlideDuration
=
"3000"
>
<
NextImagesAnimation
Type
=
"Random"
/>
<
PrevImagesAnimation
Type
=
"Random"
/>
</
AnimationSettings
>
</
ClientSettings
>
</
telerik:RadImageGallery
>
Protected
Sub
Page_Load(sender
As
Object
, e
As
EventArgs)
Handles
Me
.Load
galRoom.ImagesFolderPath =
"events/ev1"
End
Sub
I have a repeater to list all products which contains pictures for each product
if I click product A which has 3 pictures, clicked the last pic, it shows properly
then I click product B which has 1 pictures, the page throws out error: index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
I believe the issue is on Proudct B, RadImageGallery still tries to show the third pic, and couldn't find it.
Hi,
In the ImageGallery the thumbnails for SVG files are shown OK.
When I use DisplayAreaMode="ToolTip" the SVG is not shown in the Tooltip.
Is this by design?
Marc
Hi,
How to i load all the jpg and png files from specific folder into RadImageGallery from server side?
Thank You
Hi
Is it possible to change the maxjsonlength used by the jsonserializer in radimagegallery??
I sometimes need to load images temporarily by passing base64 string instead of url, but I get maxjsonlength error.
I have tried in web.config but that doesn't help.
Thank you for your help
Thami
Is there a way to add a description when loading images via a folder?
Thanks