Change height javascript

2 posts, 0 answers
  1. willk
    willk avatar
    18 posts
    Member since:
    May 2007

    Posted 27 Jul 2015 Link to this post

    Hi All,

    Is there any clientside properties that can  be changed in javascript for this control?

    I want to be able to adjust the image to display the full image when a user clicks on it.

    I have added an attribute onclick which fires javascript when someone clicks on it, and can get the control. However, I cannot figure out how to set either the Height property, or the style property. Style would be easiest so I can just modify the max-height.




  2. Konstantin Dikov
    Konstantin Dikov avatar
    2466 posts

    Posted 30 Jul 2015 Link to this post

    Hi Will,

    Once you get reference to the IMAGE element generated by the RadBinaryImage you can remove its "style.width" and "style.height" properties, which will force the image to display its full size.

    I would also recommend that you take a look at the following Code Library, where you will find a custom manager that you can use in your project, which provides the desired functionality:
    Hope this helps.

    Konstantin Dikov
    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
Back to Top