| RadDock oDock1 = new RadDock(); |
| oDock1.Title = "First Dock"; |
| oDock1.ID = "radDock1"; |
| Control oCtrl1 = LoadControl("~/Controls/Dock1Contents.ascx"); |
| oDock1.Controls.Add(oCtrl1); |
| RadDockZone oZone1 = DZ1; |
| oZone1.Docks.Insert(0, oDock1); |
| RadDock oDock2 = new RadDock(); |
| oDock2.Title = "Second Dock"; |
| oDock2.ID = "radDock2"; |
| Control oCtrl2 = LoadControl("~/Controls/Dock2Contents.ascx"); |
| oDock2.Controls.Add(oCtrl2); |
| RadDockZone oZone2 = DZ2; |
| oZone2.Docks.Insert(0, oDock2); |
| RadDock oDock3 = new RadDock(); |
| oDock3.Title = "Third Dock"; |
| oDock3.ID = "radDock3"; |
| Control oCtrl3 = LoadControl("~/Controls/Dock3Contents.ascx"); |
| oDock3.Controls.Add(oCtrl3); |
| RadDockZone oZone3 = DZ3; |
| oZone3.Docks.Insert(0, oDock3); |

protected void RadGrid2_ItemDataBound(object sender, GridItemEventArgs e)
{
if (e.Item is GridDataItem)
{
String FileType = DataBinder.Eval(e.Item.DataItem, "FileTypeID").ToString();
TableCell TemplateCell = (e.Item as GridDataItem)["Image1"] as TableCell;
if (FileType == "swf")
{
TemplateCell.Text =
String.Format("<div id=\"flashcontent\"><embed type=\"application/x-shockwave-flash\" src=\"{0}\" id=\"sotester\" name=\"sotester\" quality=\"high\" wmode=\"transparent\" height=\"100\" width=\"290\" /></div>", DataBinder.Eval(e.Item.DataItem, "PhysicalPath"));
}
else if (FileType == null )
{
Image myImage = new Image();
myImage.ImageUrl =
"~/DataImages/missing.jpg";
}
else
{
Image myImage = new Image();
myImage.ImageUrl =
DataBinder.Eval(e.Item.DataItem, "PhysicalPath").ToString();
myImage.Width =
Unit.Pixel(16);
myImage.Height =
Unit.Pixel(16);
myImage.AlternateText =
"someimage";
TemplateCell.Controls.Add(myImage);
}
}
}
When it runs i can see the images and the flash but the empty images still don't have the missing jpg appearing

Hi,
I am facing following 2 problems:
1. I am getting a javascript error " 'AjaxNS' is undefined" when I try to change any value from radcontrol combo box.
Note, I have set UseEmbeddedScripts="false" as earlier I could not see RadControls (e.g. Combo Box).
Also I would like to mention that the same code works on DEV environment but it is not working on Test environment. Is there any settings or security problem?
2. I am getting another javascript error " 'Sys' is undefined" when a page with RadUplaod control is opened. Like above scenario, I have set UseEmbeddedScripts="false".
Also I would like to mention that the same code works on DEV environment but it is not working on Test environment. Is there any settings or security problem?
Please let me know the solution.
Hi
I have a problem. I using q1 2009 and. Radeditor upload and image editor doesn t working. How can I enable upload and image editor?
Upload folder enabled for image upload. Permission is ok.
| <telerik:RadEditor runat="server" ID="RadEditor1" Height="550px" Width="100%" BorderWidth="0" Skin="Office2007"> |
| <ImageManager ViewPaths="~/Upload/" /> |
| <FlashManager ViewPaths="~/Upload/" /> |
| <MediaManager ViewPaths="~/Upload/" /> |
| <DocumentManager ViewPaths="~/Upload/" /> |
| <TemplateManager ViewPaths="~/Upload/" /> |
| <Content> |
| </Content> |
| </telerik:RadEditor> |
Thank you.