[PR #573] [MERGED] RadzenUpload proposed cancel functionality #2242

Open
opened 2026-01-29 18:17:55 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/radzenhq/radzen-blazor/pull/573
Author: @BassetMan
Created: 8/10/2022
Status: Merged
Merged: 8/11/2022
Merged by: @enchev

Base: masterHead: master


📝 Commits (5)

  • f020d28 Change to DatePicker to optionally pad the time picker hour, minute or seconds components with leading zeros. Corresponding new boolean parameters are PadHours, PadMinutes and PadSeconds.
  • bf5a9ca Merge branch 'radzenhq:master' into master
  • 1b4231d Fixed issue with RadzenDialog where closing a nested dialog removed the 'no-scroll' class from the page body, allowing the background to scroll. The javascript 'closeDialog' function is now only invoked when the last dialog is closed.
  • 2b4c6ce Merge branch 'radzenhq:master' into master
  • e851c44 Added boolean Cancel property to UploadProgressArgs, allowing the underlying XMLHttpRequest to be aborted if required. Thereby cancelling the upload. Added boolean Cancelled property to UploadCompleteEventArgs, to determine if the request completed due to being canelled.

📊 Changes

4 files changed (+50 additions, -9 deletions)

View changed files

📝 Radzen.Blazor/Common.cs (+9 -0)
📝 Radzen.Blazor/RadzenUpload.razor.cs (+9 -4)
📝 Radzen.Blazor/wwwroot/Radzen.Blazor.js (+11 -3)
📝 RadzenBlazorDemos/Pages/UploadPage.razor (+21 -2)

📄 Description

Added boolean Cancel property to UploadProgressArgs, allowing the underlying XMLHttpRequest to be aborted if required. Thereby cancelling the upload. Added boolean Cancelled property to UploadCompleteEventArgs, to determine if the request completed due to being cancelled.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/radzenhq/radzen-blazor/pull/573 **Author:** [@BassetMan](https://github.com/BassetMan) **Created:** 8/10/2022 **Status:** ✅ Merged **Merged:** 8/11/2022 **Merged by:** [@enchev](https://github.com/enchev) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (5) - [`f020d28`](https://github.com/radzenhq/radzen-blazor/commit/f020d28b2beb095f1550211f7058d69d93899358) Change to DatePicker to optionally pad the time picker hour, minute or seconds components with leading zeros. Corresponding new boolean parameters are PadHours, PadMinutes and PadSeconds. - [`bf5a9ca`](https://github.com/radzenhq/radzen-blazor/commit/bf5a9cab6d83d154ce9be4415b83aa93852f329f) Merge branch 'radzenhq:master' into master - [`1b4231d`](https://github.com/radzenhq/radzen-blazor/commit/1b4231df729c2b96627a814b140a13a3ae9e238f) Fixed issue with RadzenDialog where closing a nested dialog removed the 'no-scroll' class from the page body, allowing the background to scroll. The javascript 'closeDialog' function is now only invoked when the last dialog is closed. - [`2b4c6ce`](https://github.com/radzenhq/radzen-blazor/commit/2b4c6ce82e2a223343a454e805e7e37eed366a19) Merge branch 'radzenhq:master' into master - [`e851c44`](https://github.com/radzenhq/radzen-blazor/commit/e851c44102887dc5e7b48542c77c9e52c45c0b6d) Added boolean Cancel property to UploadProgressArgs, allowing the underlying XMLHttpRequest to be aborted if required. Thereby cancelling the upload. Added boolean Cancelled property to UploadCompleteEventArgs, to determine if the request completed due to being canelled. ### 📊 Changes **4 files changed** (+50 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `Radzen.Blazor/Common.cs` (+9 -0) 📝 `Radzen.Blazor/RadzenUpload.razor.cs` (+9 -4) 📝 `Radzen.Blazor/wwwroot/Radzen.Blazor.js` (+11 -3) 📝 `RadzenBlazorDemos/Pages/UploadPage.razor` (+21 -2) </details> ### 📄 Description Added boolean Cancel property to UploadProgressArgs, allowing the underlying XMLHttpRequest to be aborted if required. Thereby cancelling the upload. Added boolean Cancelled property to UploadCompleteEventArgs, to determine if the request completed due to being cancelled. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 18:17:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#2242