Welcome Guest Search | Active Topics | Sign In | Register

webcontrol - allowdrop flag not being observed Options
Craig Oliver
Posted: Monday, October 27, 2014 3:09:31 PM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
We have the 'allowdrop' flag set to false on our primary web control, yet we can still drag and drop items into the webcontrol. This replaces the web site with whatever was dragged in.

I've tried setting to false and true and the behavior is the same. Is there something I am missing? We don't want to allow users to drop content in: while it does not hurt anything per se, they have to close the program and re-open to get back to our system.

thanks!
eo_support
Posted: Tuesday, October 28, 2014 1:25:58 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Hi,

In the current build there is no way to disable automatically loading a file by dropping a file into the WebView. In our next build we will add an AllowDropLoad property on the WebView so that you can explicitly control whether to enable this feature.

Thanks!
eo_support
Posted: Friday, October 31, 2014 7:40:49 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Hi,

We have posted a new build that should fix this problem. You can download the new build from our download page.

This build added WebView.AllowDropLoad property. This property is automatically synced to WebControl.AllowDrop property if the WebView is used together with a WebControl object.

Thanks!
Craig Oliver
Posted: Thursday, November 6, 2014 1:35:02 PM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
thanks. testing now, although some initial testing seems to have some interesting lag using the multi-DLL version (i.e., the entire app just freezes periodically). Still testing to see if it is something I've done...

edit: the regular DLL acts just fine. I have a feeling it is something I've done...
Craig Oliver
Posted: Friday, November 14, 2014 9:02:59 AM

Rank: Advanced Member
Groups: Member

Joined: 7/7/2014
Posts: 60
This is working just fine; however, we've found that even with drop disabled, text entry fields can still have objects dropped on them. Now, this is how Chrome works as well with the client we have, but we're hoping that the don't allow drop flag would work for entry fields as well as the web client in general.

I've gone through the various events for the control & the client, and while the control gives you some info about the drop stuff, it does not give a way to cancel it (unless I am missing something there).

thanks for any assistance,
Craig

Edit: I've also tried using the WebControl.DragEnter (and other drag events) and none get triggered. Nor do any events at the containing form level itself (same events). The webview itself does not have these events. This is WinForms BTW. I was hoping that simply DropEffects.None would work but it never gets to that code...
eo_support
Posted: Friday, November 14, 2014 1:11:01 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,083
Hi,

There is no way for you to control dropping into a textbox on the browser level. There are two different kind of drag and drop:

1. Drop to navigate. This is basically a LoadUrl call. When you drop a file into the browser, it take the path of the file and load that file (navigate to that file);

2. Drag and drop for a specific element, such as drop into a text fields, or drop a file into a HTML 5 file upload control, those are controlled on the element level with JavaScript;

Property for AllowDropLoad is for #1. As the name suggest, it controls whether dropping a file will automatically load it. #2 can be controlled by script in the page, but not at the browser level through our interface.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.