I'm using the Kendo for ASP.Net MVC Upload control. I'm on version 2019, and upgrading right now is not an option unfortunately. When the user chooses a file (multi-select is off), I have a Submit button separate from the control that the user clicks to begin the upload. While the upload is taking place, I want the Choose File button to be disabled. I need the pause and cancel buttons enabled, so it won't work to disable the entire control. I have a place to put some javascript to disable the button, but everything I've tried so far doesn't accomplish disabling the button.
Here is the declaration of the control:
@(Html.Kendo().Upload()
.Name("chunkContent")
.Async(a => a
.Batch(false)
.Save("UploadLargeFileChunk", "DocumentUpload")
//.Remove("Remove", "DocumentUpload") not implemented
.AutoUpload(false)
.ChunkSize(Model.ChunkSize)
.AutoRetryAfter(Model.AutoRetryAfter)
.MaxAutoRetries(Model.MaxAutoRetries)
)
.Multiple(false)
.Events(e => e.Select("onSelectFile"))
.Events(e => e.Upload("onUploadChunk"))
.Events(e => e.Cancel("onCancelUpload"))
.Events(e => e.Success("onUploadSuccess"))
.Events(e => e.Error("onUploadError"))
.Messages(m => m.Select("Choose File"))
)
</div>