or
Hello,
I have a problem with RadEditor Image Manager, the problem is that the preview is not working right, I don't know what is missing me to configure, as you can see in the image that I attach you, it appears a red X instead of the image, when I insert the image it seems the same, only the red X, so I'm not able to insert the image... So when I open the image in the editor, I don't have problem I can see the image.
I have been many days trying to solve this, I hope you can help me, even I hope I can explain you the problem.
Thanks in advance.
protected
void
AddDetailsTable()
{
GridTableView gvCylinderList =
new
GridTableView(gridMapModel);
gvCylinderList.Name =
"gvCylinderList"
;
gvCylinderList.AutoGenerateColumns =
false
;
gridMapModel.MasterTableView.DetailTables.Add(gvCylinderList);
GridBoundColumn clName =
new
GridBoundColumn();
clName.DataField =
"Name"
;
clName.HeaderText =
"Name"
;
gvCylinderList.Columns.Add(clName);
gridMapModel.DetailTableDataBind+=
new
GridDetailTableDataBindEventHandler(gridMapModel_DetailTableDataBind);
}
protected
void
gridMapModel_DetailTableDataBind(
object
sender, GridDetailTableDataBindEventArgs e)
{
GridDataItem item = (GridDataItem)e.DetailTableView.ParentItem;
switch
(e.DetailTableView.Name)
{
case
"gvCylinderList"
:
int
mapModelId = Convert.ToInt32(item.GetDataKeyValue(
"MapModelId"
));
VesselService vs =
new
VesselService();
List<MapModelCylinder> lst = GetMapModelCylinderList(vs.GetMapModelsCylinder(mapModelId));
if
(lst.Count > 0)
{
e.DetailTableView.DataSource = lst;
}
break
;
}
}
$(
"input[name='cboSelection']"
).keydown(
function
(event) {
event.preventDefault();
return
false
;
});
});
// Attach the event handlers to the client side events of the TextBoxes.
foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
{
if (item is GridDataItem)
{
columnsCount = 0;
for (int i = 2; i < RadGrid1.MasterTableView.RenderColumns.Length; i++)
{
GridColumn column = RadGrid1.MasterTableView.RenderColumns[i];
TextBox textBox = (item[column.UniqueName].Controls[0]) as TextBox;
if (textBox != null)
{
textBox.Attributes.Add("ondblclick", "cellDoubleClickFunction('" + textBox.ClientID + "');");
textBox.Attributes.Add("onclick", "cellClick('" + textBox.ClientID + "');");
}
if (i == 2)
{
textBox.ReadOnly = true;
textBox.Attributes.Add("class", "readOnly");
}
columnsCount++;
<
telerik:RadButton
ID
=
"uxCancelButton"
runat
=
"server"
CausesValidation
=
"False"
UseSubmitBehavior
=
"false"
Text
=
"Cancel"
OnClientClicked
=
"CloseAdhocPopup"
AutoPostBack
=
"False"
>
<
Icon
PrimaryIconCssClass
=
"rbCancel"
PrimaryIconLeft
=
"6px"
></
Icon
>
</
telerik:RadButton
>
<
telerik:RadTabStrip
runat
=
"server"
ID
=
"radTabStrip"
PerTabScrolling
=
"true"
ScrollChildren
=
"true"
SelectedIndex
=
"0"
Width
=
"100%"
style
=
"padding-top:2px;"
>
<
Tabs
>
<
telerik:RadTab
runat
=
"server"
Text
=
"Customer Details"
Value
=
"0"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Practice Info"
Value
=
"1"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Customer & Case Alerts"
Value
=
"6"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Calls & Notes"
Value
=
"2"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Cases"
Value
=
"3"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Accounting"
Value
=
"4"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Sales"
Value
=
"5"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Attachments"
Value
=
"7"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Education Courses"
Value
=
"8"
/>
<
telerik:RadTab
runat
=
"server"
Text
=
"Personal Notes"
Value
=
"9"
/>
</
Tabs
>
</
telerik:RadTabStrip
>