Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Batch Edit, File Upload

$
0
0
Hello,

In order to extract the uploaded file contents you can modify the logic as demonstrated below.

C#:
protected void RadGrid1_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
{
    foreach (GridBatchEditingCommand command in e.Commands)
    {
        if ((command.Type == GridBatchEditingCommandType.Update))
        {
            Hashtable newValues = command.NewValues;
            if (newValues != null)
            {
                byte[] file = (byte[])newValues["AttachmentColumn"];
            }
        }
    }
}
More information about accessing the user changes can be found in this help article.

Regards,
Angel Petrov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>