Change height javascript

2 posts, 0 answers
  1. willk
    willk avatar
    17 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.

     

    Thanks,

    Will

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1793 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.


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