Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Editor > RadDialogOpener and Stand Alone Image manager Property custom style and color issue
RadControls for ASP.NET are no longer supported (see this page for reference). In case you have inquiries about the Telerik ASP.NET AJAX controls, post them in the pertinent ASP.NET AJAX forums.

Answered RadDialogOpener and Stand Alone Image manager Property custom style and color issue

Feed from this thread
  • Akila Kumarasamy avatar

    Posted on Jun 6, 2011 (permalink)

    Hi,

    We have a standalone Image manager and we are using RadDialogOpener to handle this. And our Stand alone image manger works fine. But after uploading the image if we go to image property the CSS Class dropdown and the Border Color dropdown are displaying empty. We need to populate these from site styles and color. For Editor we are using 
    radEditor.CssFiles.Add("/styles/stylesheetname.css");
    and 
    radEditor.CssClasses.Add(classname,classname);
    and
    radEditor.Colors.Add(color);

    and the image manager properties are pulling these styles properly in the editor, as we are using stand alone image manager with RadDialogOpener  we realyl don't have any methods to populate custom styles and colors.I saw a property for loading the Cssfile but I wanted to add the color and styles manually. Is this possible for a stand alone image manager? We have source code and if there is any easy implementation, Can any one please help?
    DialogOpener1.DialogsCssFile
    Thanks,
    Akila.

  • Answer Rumen Rumen admin's avatar

    Posted on Jun 9, 2011 (permalink)

    Hi Akila,

    Please, try the following code:

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


    All the best,
    Rumen
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  • Akila Kumarasamy avatar

    Posted on Jun 9, 2011 (permalink)

    Hi Rumen,

    Great! Thank you very much...It worked perfectly.

    Regards,
    Akila.

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET > Editor > RadDialogOpener and Stand Alone Image manager Property custom style and color issue