Spreadsheet with images

3 posts, 0 answers
  1. Dhruven
    Dhruven avatar
    19 posts
    Member since:
    Jun 2019

    Posted 02 Mar Link to this post


    I am working with Spreadsheet and I have a question regarding images.

    When I have more than one image on a spreadsheet, on click of those images I want to get info about the image more specifically range of the topLeft cell the image is attached to.

    If there is just one image on the sheet I can got to the JSON object of the sheet and just get the only image form the object but if there are more images I want to specify which image is attached to which cell, but the only catch is I want the information on click of an image not cell.

    Is it possible to get it?


    Thank you in advance.

  2. Stefan
    Stefan avatar
    2950 posts

    Posted 03 Mar Link to this post

    Hello, Dhruven,

    After research, currently, we can suggest attaching a click event over all of the images. Then in that click event inside the style of the element, there will be a background image property that will contain the URL of the image. The URL can be used to differentiate the images. As we pass a collection of drawings to the Spreadsheet, the URL can be used to go over the same collection and find the topLeft cell of the image based on the URL:


    As I agree that this is not ideal, I can suggest making a feature request to provide a click callback as part of the drawing props. The request can be submitted here:


    Progress 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. Dhruven
    Dhruven avatar
    19 posts
    Member since:
    Jun 2019

    Posted 03 Mar in reply to Stefan Link to this post

    Hi Stefan,


    Thank you do much for your reply and the solution. 
    As you said, it is not an ideal solution but I can make it work for now. 
    For sure I will create a feature request for a fix. 


    Thanks again. 

Back to Top