This is a migrated thread and some comments may be shown as answers.

Change height javascript

1 Answer 15 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
willk
Top achievements
Rank 1
willk asked on 28 Jul 2015, 01:54 AM

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

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 30 Jul 2015, 08:48 AM
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
Tags
BinaryImage
Asked by
willk
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or