or
<
p
abp
=
"219"
><
img
title
=
"Redhill"
alt
=
"Redhill"
src
=
"/Image/7/en-GB/0/0"
abp
=
"220"
/></
p
><
h1
abp
=
"221"
>Welcome to</
h1
>
protected
void
rgDPR_ItemDataBound(
object
sender, GridItemEventArgs e)
{
DbSet<SICCode> sicCodes = DB.SICCodes;
var query = (from codes
in
sicCodes
orderby codes.Industry ascending
select codes.Industry, codes.ID).ToList();
if
(e.Item
is
GridEditableItem && e.Item.IsInEditMode)
{
GridEditableItem editedItem = e.Item
as
GridEditableItem;
GridEditManager editMan = editedItem.EditManager;
GridDropDownListColumnEditor editor = editMan.GetColumnEditor(
"SICCodeOverride"
)
as
GridDropDownListColumnEditor;
editor.DataSource = query;
editor.DataTextField =
""
;
// codes.Industry should go here
editor.DataValueField =
""
;
// codes.ID should go here
editor.DataBind();
}
}
RadAjaxManager.GetCurrent(Page).ResponseScripts.Add("alert('NOTHING SELECTED. Please select the document for which you want to send a notifcation.');")
<
telerik:RadAsyncUpload
ID
=
"AsyncUpload1"
ClientIDMode
=
"Static"
MultipleFileSelection
=
"Disabled"
ManualUpload
=
"true"
UploadedFilesRendering
=
"BelowFileInput"
InputSize
=
"50"
OnClientFileSelected
=
"AsyncUpload1_OnClientFileSelected"
UseApplicationPoolImpersonation
=
"true"
runat
=
"server"
>
<
Localization
Select
=
"Select File"
/>
</
telerik:RadAsyncUpload
>
function OnClientLoad(editor, args) {
var element = document.all ? editor.get_document().body : editor.get_document();
$telerik.addExternalHandler(element, "paste", function (e) {
editor.fire("PastePlainText");
if (e.preventDefault) e.preventDefault();
if (e.stopPropagation) e.stopPropagation();
return false;
});
}