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

RadDialogOpener custom styles for Image Property

2 Answers 49 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Akila Kumarasamy
Top achievements
Rank 1
Akila Kumarasamy asked on 19 Jul 2011, 03:48 PM
Hi,

We have a standalone Image manager and we are using RadDialogOpener to handle this. After uploading a image if we go to image property the CSS Class dropdown has the styles listed from custom styles. But these styles are displayed as a  regular text instead of applying the styles to have a preview of it in the dropdown. This works fine in image manager inside Editor, only the stand alone image manager styles have issue.  I have populated the style based on this thread
http://www.telerik.com/community/forums/aspnet/editor/raddialogopener-and-stand-alone-image-manager-property-custom-style-and-color-issue.aspx

can some one help to fix this?

Thanks,
Akila.

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 21 Jul 2011, 02:08 PM
Hello Akila,

You can style the CSS dropdown items by providing values for their cssText properties, e.g.

<button onclick="$find('<%= DialogOpener1.ClientID %>').open('ImageManager', {CssClasses: [['.class1',{selectorText:'Display Name1', cssText:'color:green;'}], ['.class2',{selectorText:'Display Name2', cssText:'color:red;border:1px solid red;'}]], Colors: ['', '#000000', '#eeece1', '#1f497d', 'red', 'green', 'blue']});return false;">Open ImageManager</button>



Best wishes,
Rumen
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Akila Kumarasamy
Top achievements
Rank 1
answered on 01 Aug 2011, 07:12 PM
Hi,

Thank you very much. this worked perfect.

Regards,
Akila.
Tags
Editor
Asked by
Akila Kumarasamy
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Akila Kumarasamy
Top achievements
Rank 1
Share this question
or