This is a migrated thread and some comments may be shown as answers.

Add custom button to toolbar

4 Answers 29 Views
ImageGallery
This is a migrated thread and some comments may be shown as answers.
Cheri Verdend
Top achievements
Rank 1
Cheri Verdend asked on 14 Aug 2015, 04:16 PM
Is there a way to add a custom button to the ImageGalllery toolbar that calls a javascript function?

4 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 19 Aug 2015, 01:42 PM
Hi Cheri,

Please examine the attached web site sample and try to implement a similar approach with RadImageGallery. If you have any difficulties, I can prepare a new project and send it to you.

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Cheri Verdend
Top achievements
Rank 1
answered on 19 Aug 2015, 03:34 PM

Thank you - that worked perfectly!

For anyone else trying to do this, I simply created a javascript function called pageLoad that appended my custom button to the rigControlsSet.

function pageLoad(app, args) {

      $(".rigControlsSet").append($get('<%= ImageButton1.ClientID %>'));
}

0
Eyup
Telerik team
answered on 24 Aug 2015, 07:34 AM
Hello Cheri,

Thank you for sharing your approach with our community and I'm glad the provided sample has proven helpful achieving your requirement.
Could you share what will be the purpose of this button?

Regards,
Eyup
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Cheri Verdend
Top achievements
Rank 1
answered on 24 Aug 2015, 03:30 PM

I wanted to enable download of the full-res version of self-selected images from the ImageGallery.

I ​added a custom button, with a download icon, to the ImageGallery toolbar. The button launches a RadWindow containing a page based on RadZipLibrary demo. A user clicks the download button, selects one or more of the image thumbnails in the RadWindow, and downloads a zip of the full-res versions of their selected images.

It works like a charm!

Tags
ImageGallery
Asked by
Cheri Verdend
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Cheri Verdend
Top achievements
Rank 1
Share this question
or