i can't access the additional fields server side :( i use telerik 2012.3)
i follow the following link :
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/additionalfields/defaultcs.aspx
The script is:
My .aspx :
My .cs :
i follow the following link :
http://demos.telerik.com/aspnet-ajax/asyncupload/examples/additionalfields/defaultcs.aspx
The script is:
function
onClientFileUploaded(radAsyncUpload, args) {
var
row = args.get_row(),
inputName = radAsyncUpload.getAdditionalFieldID(
"TextBox"
),
inputType =
"text"
,
inputID = inputName,
input = createInput(inputType, "Title", "Title"),
label = createLabel(inputID),
br = document.createElement(
"br"
);
row.appendChild(br);
row.appendChild(input);
row.appendChild(label);
}
function
createInput(inputType, inputID, inputName) {
var
input = document.createElement(
"input"
);
input.setAttribute(
"type"
, inputType);
input.setAttribute(
"id"
, inputID);
input.setAttribute(
"name"
, inputName);
return
input;
}
function
createLabel(forArrt) {
var
label = document.createElement(
"label"
);
label.setAttribute(
"for"
, forArrt);
label.innerHTML =
"info: "
;
return
label;
}
<
telerik:RadAsyncUpload
runat
=
"server"
ID
=
"rada_attach"
OnClientFileUploaded
=
"onClientFileUploaded"
MultipleFileSelection
=
"Disabled"
InitialFileInputsCount
=
"1"
MaxFileInputsCount
=
"1"
Width
=
"100%"
/>
My .cs :
foreach
(UploadedFile UF
in
rada_attach.UploadedFiles)
{
OBJ.File_name = UF.GetFieldValue(
"Title"
);//always null
}