Add custom button to toolbar

5 posts, 0 answers
  1. Cheri Verdend
    Cheri Verdend avatar
    24 posts
    Member since:
    Apr 2004

    Posted 14 Aug 2015 Link to this post

    Is there a way to add a custom button to the ImageGalllery toolbar that calls a javascript function?
  2. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 19 Aug 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Cheri Verdend
    Cheri Verdend avatar
    24 posts
    Member since:
    Apr 2004

    Posted 19 Aug 2015 in reply to Eyup Link to this post

    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 %>'));
    }

  5. Eyup
    Admin
    Eyup avatar
    3015 posts

    Posted 24 Aug 2015 Link to this post

    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
  6. Cheri Verdend
    Cheri Verdend avatar
    24 posts
    Member since:
    Apr 2004

    Posted 24 Aug 2015 in reply to Eyup Link to this post

    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!

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017