RadDialogOpener custom styles for Image Property

3 posts, 1 answers
  1. Akila Kumarasamy
    Akila Kumarasamy avatar
    25 posts
    Member since:
    Dec 2009

    Posted 19 Jul 2011 Link to this post

    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. Answer
    Rumen
    Admin
    Rumen avatar
    13748 posts

    Posted 21 Jul 2011 Link to this post

    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!

  3. Akila Kumarasamy
    Akila Kumarasamy avatar
    25 posts
    Member since:
    Dec 2009

    Posted 01 Aug 2011 Link to this post

    Hi,

    Thank you very much. this worked perfect.

    Regards,
    Akila.
Back to Top