Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
345 views
Hi,
the scenario we need is this:
There is a list of images displayed in the gallery view (images are stored on the http file server). After you click on one of the images in the gallery view, we need the image editor to load the selected image for editing, and be able to save it after editing is done.

Do we need to download image first to the local temp folder, or can we load them from the URL? Is there an example?

How can I get image from the selected gallery item loaded into the editor?

Thank you,

Doncho
Telerik team
 answered on 27 May 2022
1 answer
47 views
I would like to show the alt tag / tooltip of the image title when the cursor is hovered over the thumbnail. Any way that can be done?
Rumen
Telerik team
 answered on 18 Feb 2022
5 answers
87 views
I do not want Description box to go away without appearing all the time. How do I do that.
Now I must go with the mouse pointer for it to resurface, or I can put time how long it stays?
Vessy
Telerik team
 answered on 09 Mar 2021
1 answer
53 views

actually there is a method get_itemIndex(), which would be equivalent to a method set_selectedIndex(index) from RadMultipage or one method like select()
from RadComboBox

How could I implement it or a code javascript would help me a lot

thanks

Peter Milchev
Telerik team
 answered on 27 Nov 2020
1 answer
55 views

Can someone help - I can't find anything in the docs, but it shoud be easy...

I have an image gallery working with sqldatasource and all looks good except the readability of the title text which appears over the image.

The customers for this website are 'senior citizens'  and can't read the captions. (see bessacarr-owners-club.org/photo-gallery.aspx)

My problem is that the text is a shade of grey and the surrounding box is also a (lighter) shade of grey. How can I make the text more contrasting.

eg the background darker and the text lighter?

Thanks

Clive

 

Q2 2016 controls in use

Vessy
Telerik team
 answered on 31 Aug 2020
8 answers
386 views
I am using the IMage gallery successfully except for a few images which are higher than they are wide, and when rendered in the control, it rotates them sideways. I want to prevent this without modifying the image. How can I get the control to display the image
Peter Milchev
Telerik team
 answered on 07 Apr 2020
2 answers
116 views

I am converting an old application that stores its images as base64strings in a SQL Server database.

I am trying to add the images to the gallery. Pointing the ImageURL to a base64 string works fine, but not the ThumbnailURL.

        public static string ImageToBase64(System.Drawing.Image image, System.Drawing.Imaging.ImageFormat format)

        {
            string returnString = "";
            System.IO.MemoryStream ms = new MemoryStream();

            image.Save(ms, format);
            byte[] imageBytes = ms.ToArray();
            returnString = "data:image;base64," + Convert.ToBase64String(imageBytes);

            return returnString;
        }

        public static Telerik.Web.UI.ImageGalleryItem ImageBase64(byte[] BlobData, string ImageTitle)
        {
            Telerik.Web.UI.ImageGalleryItem returnImage = new Telerik.Web.UI.ImageGalleryItem();

            System.Drawing.Image img = null;
            System.IO.MemoryStream mem = new MemoryStream();
            mem.Write(BlobData, 0, BlobData.Length);
            mem.Seek(0, SeekOrigin.Begin);

            img = System.Drawing.Image.FromStream(mem);

            returnImage.Title = ImageTitle;
            returnImage.ThumbnailUrl = ImageToBase64(SizedImage(img, 100, 75), System.Drawing.Imaging.ImageFormat.Jpeg);
            returnImage.ImageUrl =     ImageToBase64(SizedImage(img, 800, 600), System.Drawing.Imaging.ImageFormat.Jpeg);
            return returnImage;
        }

        returnImage.ImageUrl works perfectly fine.

 


        public static System.Drawing.Bitmap SizedImage(System.Drawing.Image img, int dispWidth, int dispHeight)
        {
            double scale = 1.0, hScale = 1.0;
            double imgWidth = img.Width;
            double imgHeight = img.Height;

            if (imgWidth > dispWidth)
                scale = dispWidth / imgWidth;
            if (imgHeight > dispHeight)
                hScale = dispHeight / imgHeight;
            if (hScale < scale)
                scale = hScale;

            int imgw = Convert.ToInt32(imgWidth * scale);
            int imgh = Convert.ToInt32(imgHeight * scale);

            return new System.Drawing.Bitmap(img, imgw, imgh);
        }

Richard
Top achievements
Rank 1
 answered on 23 Sep 2019
7 answers
344 views
Hi We are trying to use ImageGallery but cannot make it properly responsive.

It seems that we can only set a fixed height in pixels so that the gallery shrinks horizontally but does not stay in proportion. The gallery height in the settings wizard cannot be left blank, cannot be set to a percentage or auto as then we get a run time error.  The height value writes css inline so we can't even over-ride it

If we remove it in Firebug the gallery becomes properly responsive

Does anyone know a way to solve this issue? We could just use a different gallery but this is the only problem we have 


Rumen
Telerik team
 answered on 13 Aug 2019
1 answer
137 views
I've seen the controls that are available in the Image editor and would really like to see them implemented in the image gallery. Being able to allow the client to specify image zoom, or other effects has a great value. I was curious if there was any simple solution currently to show a client a list of image thumbnails, and to open a single one in an editor.
Rumen
Telerik team
 answered on 13 Aug 2019
3 answers
123 views

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

Peter Milchev
Telerik team
 answered on 06 May 2019
Narrow your results
Selected tags
Tags
+? more
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
horváth
Top achievements
Rank 2
Iron
Iron
Steve
Top achievements
Rank 2
Iron
Erkki
Top achievements
Rank 1
Iron
Mark
Top achievements
Rank 2
Iron
Iron
Veteran
Jakub
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?