is there a way to get the list of uploaded files added to a datasource.
Here is my attempt, my alert box returns the appropriate data, but for some reason the grid is not displaying the returned data.
Here is my attempt, my alert box returns the appropriate data, but for some reason the grid is not displaying the returned data.
$("#files").kendoUpload({ async: { saveUrl: "upload.aspx", autoUpload: true, batch: false }, files: files, upload: function (e) { filecount = filecount + 1; $.map(e.files, function (file) { var info = file.name; var filesize = file.size var upGrid = $('#upfilelist').data("kendoGrid"); var dataSources = UFSource; var newrecord = { ufid: compups, FileName: info, FileSize: filesize }; //alert(compups +'_'+ filename + '_' + filesize); dataSources.insert(newrecord); upGrid.dataSource = dataSources; }); }, complete: function (e) { //filecount = 0; compups = compups + 1 document.getElementById("FileCount").innerText = 'Files Uploaded: ' + filecount; $(".k-upload-files.k-reset").find("li").parent().remove(); }, showFileList: true });