Hi team.
I have implemented a DragDrop Files on my application as explaned in your documentation and that’s work fine.
if I understand correctly, the DragDrop event is fired when all files are been upload on server as stream.
It’s possible to get the progress event during the upload like progress event present in the upload control?
I need, for big files or slow connections to monitoring the byte transfer from client to server.
Thank in advance
Hi Angelo,
we added a progress event that can now be used like this:
private void PictureBox_WidgetEvent(object sender, WidgetEventArgs e)
{
if (e.Type=="progress")
{
int total = e.Data.total;
int loaded = e.Data.loaded;
}
}
Best regards
Frank
Hi Frank
In the next few days I will install the latest version of Wisej 2.5 and try.
Thanks
Hi Paul
Thanks for the reply.
As you can understand if I drop a file that takes a long time to be loaded, in the user interface I have only the wait cursor available to indicate that I have to wait for the upload to finish.
Hi Angelo
Sorry for the late.
I attached your sample with a small fixes in the datagridview. This has nugget reference for last 2.5 beta build. You can change it for the version that are using
Was nedded a column and a line of code for add a new row on it to display the name of file dragged.
The Progress event is only available for the Upload control.
Drag and drop of a file in Wisej can work with any control as a target then AllowDrop is true and there is no Progress event for that
HTH
Paul
Hi Paul
I have attached an example to better explain my question.
As you can see I have added two ways to upload the file.
If the upload is done with the Wisej.Web.Upload control, I can show the transferred progress byte using the Upload1.Progress event.
If the upload is done by drag and drop a file on the datagridview control, I don’t know how to show the transferred progress byte.
I hope I was clearer and thanks.
Hi Angelo
Could you please, post a little runnable case, to check what is wrong?
Regards
Please login first to submit.