or
<
MasterTableView
Width
=
"100%"
DataKeyNames
=
"ModId"
AllowMultiColumnSorting
=
"True"
HeaderStyle-Font-Size
=
"14px"
HeaderStyle-Font-Bold
=
"true"
>
<
DetailTables
>
<
telerik:GridTableView
DataKeyNames
=
"ModId"
AutoGenerateColumns
=
"false"
Width
=
"100%"
HeaderStyle-Font-Size
=
"12px"
HeaderStyle-Font-Bold
=
"true"
HeaderStyle-BackColor
=
"#c0c0c0"
AlternatingItemStyle-BackColor
=
"#cccccc"
>
<
ParentTableRelation
>
<
telerik:GridRelationFields
DetailKeyField
=
"ModId"
MasterKeyField
=
"ModId"
/>
</
ParentTableRelation
>
<
Columns
>
<
telerik:GridEditCommandColumn
ButtonType
=
"ImageButton"
UniqueName
=
"EditCommandColumn1"
>
<
HeaderStyle
Width
=
"20px"
/>
<
ItemStyle
CssClass
=
"MyImageButton"
/>
</
telerik:GridEditCommandColumn
>
<
telerik:GridBoundColumn
SortExpression
=
"IssuedDate"
HeaderText
=
"Issued Date"
readonly
=
"true"
DataField
=
"IssuedDate"
ItemStyle-Width
=
"200px"
>
</
telerik:GridBoundColumn
>
<
telerik:RadEditor
ID
=
"reContent"
runat
=
"server"
Skin
=
"Office2010Blue"
Height
=
"850px"
Width
=
"100%"
StripFormattingOptions
=
"MSWordRemoveAll"
<br> ContentAreaMode="Div" EmptyMessage="Add Content Here - Content is Required" StripFormattingOnPaste="MSWordRemoveAll"<
br
> ClientIDMode="Static" NewLineMode="Br" OnClientLoad="OnClientLoad" AllowScripts="true" ContentFilters="None"><
br
> </
telerik:RadEditor
>
...
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
table
>
...
<
tr
id
=
"trFileName"
runat
=
"server"
>
<
td
><
asp:Label
ID
=
"lblFile"
runat
=
"server"
>File name:</
asp:Label
></
td
>
<
td
><
asp:FileUpload
ID
=
"txtFileName"
runat
=
"server"
EnableViewState
=
"true"
></
asp:FileUpload
></
td
>
</
tr
>
...
</
table
>
<
asp:TextBox
ID
=
"txtOldFile"
runat
=
"server"
style
=
"display:none;"
/>
<
asp:Button
ID
=
"btnSubmit"
runat
=
"server"
Text
=
"Update"
OnClientClick
=
"insertLink();"
/>
<
script
type
=
"text/javascript"
>
if (window.attachEvent) {
window.attachEvent("onload", initDialog);
}
else if (window.addEventListener) {
window.addEventListener("load", initDialog, false);
}
var workLink = null;
function getRadWindow() {
if (window.radWindow) {
return window.radWindow;
}
if (window.frameElement && window.frameElement.radWindow) {
return window.frameElement.radWindow;
}
return null;
}
function initDialog() {
var clientParameters = getRadWindow().ClientParameters; //return the arguments supplied from the parent page
getRadWindow().moveTo(50, 50); // <----- Commenting this line does not result in the window reappearing.
//window.removeEventListener("load", initDialog, false); // <---- Tried this with no change in behavior.
workLink = clientParameters;
}
function insertLink() //fires when the Insert Link button is clicked
{
//create an object and set some custom properties to it
var file = document.getElementById("<%=txtFileName.ClientID%>");
var path = file.value;
var ext = path.substring(path.lastIndexOf(".") + 1, path.length).toLowerCase();
if (ext == null || ext == "") {
workLink.href = document.getElementById("<%=txtOldFile.ClientID%>").value;
} else {
workLink.href = ext;
}
getRadWindow().close(workLink); //use the close function of the getRadWindow to close the dialog and pass the arguments from the dialog to the callback function on the main page.
}
</
script
>
</
form
>
</
body
>
</
html
>
(Chart.PlotArea.Series[0] as LineSeries).SeriesItems
Any ideas?
Thanks,
A