It will be without TemplateColumn of I have to use RadUpload or RadAsyncUpload control inside TemplateColumn?
answered on 23 Apr 2015, 07:09 AM
I am experiencing difficulties understanding the query. Do you want to replace the GridAttachmentColumn with a GridTemplateColumn? If that is the case you may need to manually handle the editing process for the column. The idea here is to subscribe to the four batch editing events(OnBatchEditGetCellValue, OnBatchEditSetEditorValue, OnBatchEditGetEditorValue and OnBatchEditSetCellValue) and manually get set the cell/editor values. An example of such type of handling can be observed here.
Greetings, I can retrieve the byte array from the newValues hashtable after using the RadAsyncUpload control in a batch edit mode data grid. How can I retrieve the actual name of the file in addition to the contents?
answered on 24 Nov 2016, 08:35 AM
I am sorry to say but there isn't an exposed way to obtain the file name. You can however obtain a reference to the file upload control and its UploadedFiles collection. From there you may need to access the input stream of each file and compare it with the provided data.
foreach (GridBatchEditingCommand command in e.Commands)
if ((command.Type == GridBatchEditingCommandType.Update))