Change ImageUrl and Value of ImageCellType on client side with JavaScript

Posted by: sistemas on 30 May 2019, 9:46 am EST

  • Posted 30 May 2019, 9:46 am EST

    It’s possible to change the mentioned properties of an ImageCellType with JavaScript on client side?

    Thanks

  • Posted 30 May 2019, 7:44 pm EST

    Hello,

    For changing the ImageCellType ImageUrl and Value (InnerText) at ClientSide, we need to Get the Cell Element and modify parameters using DOM manipulation.

    Please refer to the following code snippet for reference:

    var imgCell=FpSpread1.Cells(1,1)
    imgCell.innerText="Text Change";
    imgCell.querySelector("img").src="image_url";
    

    Hope it helps!

    Regards,

    Manish Gupta

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels