Akila Kumarasamy
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
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?
Thanks,
Akila.
Answer
Rumen
Rumen
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
Posted
on Jun 9, 2011
(permalink)
Hi Rumen,
Great! Thank you very much...It worked perfectly.
Regards,
Akila.