or
<
telerik:RadGrid
ID
=
"grdSettlement"
runat
=
"server"
AllowFilteringByColumn
=
"True"
CellSpacing
=
"0"
DataSourceID
=
"SqlDataSource1"
GridLines
=
"None"
AllowAutomaticDeletes
=
"True"
AllowAutomaticUpdates
=
"True"
AutoGenerateColumns
=
"False"
AllowAutomaticInserts
=
"true"
OnInsertCommand
=
"grdSettlement_InsertCommand"
>
Column Source Code :
<
telerik:GridTemplateColumn
DataField
=
"NO"
FilterControlAltText
=
"Filter NO column"
HeaderText
=
"NO"
SortExpression
=
"NO"
UniqueName
=
"NO"
DataType
=
"System.Int64"
>
<
InsertItemTemplate
>
<
telerik:RadNumericTextBox
runat
=
"server"
ID
=
"No"
>
</
telerik:RadNumericTextBox
>
</
InsertItemTemplate
>
<
ItemTemplate
>
<%# Eval("NO") %>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
.TelerikModalOverlay
{
background-image
:
url
(
'icons/modalBackground.png'
)
!important
;
background-repeat
:
repeat
!important
;
filter: alpha(opacity=
50
)
!important
;
opacity: .
50
!important
;
-moz-opacity: .
50
!important
;
}
function
OnClientLoad(oExplorer, args) {
var
oWindowmanager = oExplorer.get_windowManager();
function
resetUploadWindow(oWindow, args) {
if
(oWindow.get_id().endsWith(
"Upload"
)) {
function
onClientBeforeClose(sender, arg) {
function
callbackFunction(arg) {
if
(arg) {
sender.remove_beforeClose(onClientBeforeClose);
sender.close();
}
}
arg.set_cancel(
true
);
radconfirm(
"Warning: If you close this window before the file(s) have completed uploading and before clicking the upload button, the file(s) will not be saved. Do you want to close the upload window?"
, callbackFunction, 400, 100,
null
,
"Warning"
);
}
oWindow.add_beforeClose(onClientBeforeClose);
}
}
oWindowmanager.remove_show(resetUploadWindow);
oWindowmanager.add_show(resetUploadWindow);
}