You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a RadzenUpload control with its Auto property set to false is placed inside of a RadzenTemplateForm control, the file cannot be uploaded manually.
To Reproduce
Steps to reproduce the behavior:
Create a RadzenTemplateForm on a .razor page and insert a RadzenUpload control as its child element.
Give the RadzenUpload control a @ref to local variable, which we will call uploadDD
Add a handler that will upload the file (either a button click or a form submit handler)
Observe in debugger that uploadDD.HasValue will be null at this point, and you can observe from the server side that the upload does not contain a file
Expected behavior
After file selection, the RadzenUpload control should have a non-null value for the file (uploadDD.HasValue should be true) This should happen regardless of whether it is inside a RadzenTemplateForm or not. (NOTE: In the documentation, the RadzenUpload is listed under the "Forms" category, so it connotates that it should work inside a form)
Additional context
It is trivial to rearrange the .razor file to move the RadzenUpload outside of the RadzenTemplateForm, repeat the above reproduction and see that the RadzenUpload will then work as expected. Changing the Auto property to true will also prevent the issue, although that prevent any code from running before the upload happens.
The text was updated successfully, but these errors were encountered:
Describe the bug
If a RadzenUpload control with its Auto property set to false is placed inside of a RadzenTemplateForm control, the file cannot be uploaded manually.
To Reproduce
Steps to reproduce the behavior:
Futher details here: https://forum.radzen.com/t/error-uploading-the-file/18772
Expected behavior
After file selection, the RadzenUpload control should have a non-null value for the file (uploadDD.HasValue should be true) This should happen regardless of whether it is inside a RadzenTemplateForm or not. (NOTE: In the documentation, the RadzenUpload is listed under the "Forms" category, so it connotates that it should work inside a form)
Additional context
It is trivial to rearrange the .razor file to move the RadzenUpload outside of the RadzenTemplateForm, repeat the above reproduction and see that the RadzenUpload will then work as expected. Changing the Auto property to true will also prevent the issue, although that prevent any code from running before the upload happens.
The text was updated successfully, but these errors were encountered: