How can I use RadUpload or RadAsyncUpload control in RadGrid batch edit mode?
I tried following code but RadAsyncUpload shows 0 files in UploadedFile enumerator.
01.
protected
void
RadGrid1_BatchEditCommand(
object
sender, GridBatchEditingEventArgs e)
02.
{
03.
foreach
(GridBatchEditingCommand command
in
e.Commands)
04.
{
05.
if
((command.Type == GridBatchEditingCommandType.Update))
06.
{
07.
Hashtable newValues = command.NewValues;
08.
09.
if
(newValues !=
null
)
10.
{
11.
var CTRL = RadGrid1.FindControl(RadGrid1.MasterTableView.ClientID +
"_AttachmentColumn"
);
12.
RadAsyncUpload asyncUpload = RadGrid1.FindControl(RadGrid1.MasterTableView.ClientID +
"_AttachmentColumn"
).Controls[0]
as
RadAsyncUpload;
13.
14.
}
15.
}
16.
}
17.
}
<
telerik:GridAttachmentColumn
UploadControlType
=
"RadUpload"
EditFormHeaderTextFormat
=
"Upload File:"
HeaderText
=
"Attachment Column"
UniqueName
=
"AttachmentColumn"
>
</
telerik:GridAttachmentColumn
>