Hi,
I am using the following in my editor configuration:
EnableEmbeddedBaseStylesheet="False"
EnableEmbeddedSkins="False"
DialogsCssFile="~/Editor/CSS/DialogCSS.css"
ExternalDialogsPath="~/Editor/Dialogs"
I have included all the right .css files for example:
<link href="~/Editor/CSS/Editor.css" rel="stylesheet" type="text/css" />
<link href="~/Editor/CSS/Window.css" rel="stylesheet" type="text/css" />
<link href="~/Editor/CSS/Editor.Vista.css" rel="stylesheet" type="text/css" />
<link href="~/Editor/CSS/Window.Vista.css" rel="stylesheet" type="text/css" />
The DialogCSS.css contains the following:
/* RadEditor for ASP.NET AJAX Base Stylesheets */
@import url("Ajax.css");
@import url("ColorPicker.css");
@import url("Dock.css");
@import url("FileExplorer.css");
@import url("FormDecorator.css");
@import url("Menu.css");
@import url("PanelBar.css");
@import url("Rotator.css");
@import url("Slider.css");
@import url("Spell.css");
@import url("Splitter.css");
@import url("TabStrip.css");
@import url("Toolbar.css");
@import url("TreeView.css");
@import url("Upload.css");
@import url("Widgets.css");
/* RadEditor for ASP.NET AJAX Skin Stylesheets */
@import url("Ajax.Vista.css");
@import url("ColorPicker.Vista.css");
@import url("ComboBox.Vista.css");
@import url("Dock.Vista.css");
@import url("FormDecorator.Vista.css");
@import url("Grid.Vista.css");
@import url("Input.Vista.css");
@import url("Menu.Vista.css");
@import url("PanelBar.Vista.css");
@import url("Rotator.Vista.css");
@import url("Slider.Vista.css");
@import url("Spell.Vista.css");
@import url("Splitter.Vista.css");
@import url("TabStrip.Vista.css");
@import url("ToolBar.Vista.css");
@import url("TreeView.Vista.css");
@import url("Upload.Vista.css");
@import url("Widgets.Vista.css");
All the dialogs are in the right place but when clicking the Upload button from the Image Manager, the Upload popup has no window border, no background color, as a matter of fact there is no style whatsoever. So I looked at the source code in the rendered browser html and found an error in the coding which I have no control over. Interestingly, when I set the EnableEmbeddedBaseStylesheet="True" and the EnableEmbeddedSkins="True" the problem goes away. below is the error that I have found: Please notice the following, I have included 2 versions, one with EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins set to FALSE (the one I am trying to get working) and one with both set to TRUE:
SET TO FALSE:
html rendered source code when the EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins is set to FALSE there is a missing <div declaration highlighted in bold just before class=:
<div id="RadFileExplorer1_uploadContainer" style="width:0px;height:0px;overflow:hidden;" class="rfeUploadContainer">
<div id="RadFileExplorer1_upload1" class="RadUpload RadUpload_Vista ">
<ul id="RadFileExplorer1_upload1ListContainer" class="ruInputs">
<li class="ruActions" id="RadFileExplorer1_upload1ButtonArea">
<input class="ruButton ruAdd" type="button" id="RadFileExplorer1_upload1AddButton" value="Add" />
</li>
</ul>
<input id="RadFileExplorer1_upload1_ClientState" name="RadFileExplorer1_upload1_ClientState" type="hidden" />
</div>
<input id="RadFileExplorer1_chkOverwrite" type="checkbox" name="RadFileExplorer1$chkOverwrite" />
<label for="RadFileExplorer1_chkOverwrite">Overwrite if file exists?</label>
<div class="rfeUploadInfoPanel">
<dl>
<dt>Max file size allowed:</dt>
<dd>200.00 KB</dd>
<dt>File extensions allowed:</dt>
<dd>*.gif, *.xbm, *.xpm, *.png, *.ief, *.jpg, *.jpe, *.jpeg, *.tiff, *.tif, *.rgb, *.g3f, *.xwd, *.pict, *.ppm, *.pgm, *.pbm, *.pnm, *.bmp, *.ras, *.pcd, *.cgm, *.mil, *.cal, *.fif, *.dsf, *.cmx, *.wi, *.dwg, *.dxf, *.svf</dd>
</dl>
</div>
<div class="rfeUploadButtonContainer">
<input type="submit" name="RadFileExplorer1$btnUpload" value="Upload" id="RadFileExplorer1_btnUpload" />
</div>
</div>
<input id="RadFileExplorer1_ClientState" name="RadFileExplorer1_ClientState" type="hidden" />
</div>
SET TO TRUE:
html rendered source code when the EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins is set to TRUE the missing <div declaration above is there as highlightd in bold below:
<div id="RadFileExplorer1_uploadContainer" style="width:0px;height:0px;overflow:hidden;">
<div class="rfeUploadContainer">
<div id="RadFileExplorer1_upload1" class="RadUpload RadUpload_Default ">
<ul id="RadFileExplorer1_upload1ListContainer" class="ruInputs">
<li class="ruActions" id="RadFileExplorer1_upload1ButtonArea">
<input class="ruButton ruAdd" type="button" id="RadFileExplorer1_upload1AddButton" value="Add" />
</li>
</ul>
<input id="RadFileExplorer1_upload1_ClientState" name="RadFileExplorer1_upload1_ClientState" type="hidden" />
</div>
<input id="RadFileExplorer1_chkOverwrite" type="checkbox" name="RadFileExplorer1$chkOverwrite" />
<label for="RadFileExplorer1_chkOverwrite">Overwrite if file exists?</label>
<div class="rfeUploadInfoPanel"><dl><dt>Max file size allowed:</dt><dd>200.00 KB</dd><dt>File extensions allowed:</dt><dd>*.gif, *.xbm, *.xpm, *.png, *.ief, *.jpg, *.jpe, *.jpeg, *.tiff, *.tif, *.rgb, *.g3f, *.xwd, *.pict, *.ppm, *.pgm, *.pbm, *.pnm, *.bmp, *.ras, *.pcd, *.cgm, *.mil, *.cal, *.fif, *.dsf, *.cmx, *.wi, *.dwg, *.dxf, *.svf</dd></dl></div><div class="rfeUploadButtonContainer"><input type="submit" name="RadFileExplorer1$btnUpload" value="Upload" id="RadFileExplorer1_btnUpload" /></div></div></div><input id="RadFileExplorer1_ClientState" name="RadFileExplorer1_ClientState" type="hidden" />
</div>
I am not sure how to fix this as it seems to be an internal thing with the way telerik is rendering the final output.
Thank you for your help.
Grant
