Relative Content

Tag Archive for c#formsdatagridrazor-pagesdevextreme

Uploading Files with Form Data in DevExtreme DataGrid

I want to upload a file while adding data in the DevExtreme DataGrid. However, instead of the file being uploaded separately, I want it to be processed along with the data when I click the “Save” button and call the insertion method. I’m using Html.DevExtreme().FileUploader() and when I set UploadMode(FileUploadMode.Instantly) and specify the UploadUrl, the file goes to the backend. But I want this to happen when I press the “Save” button with the form. So I’m using UploadMode(FileUploadMode.UseForm), but it’s not working as I want.