Forum  General Visual ...  Visual WebGui v...  Possible breaking change with AllowTargetsPropagateToChildControls
Previous Previous
 
Next Next
New Post 7/2/2012 8:05 PM
  davesdig
13 posts
No Ranking


Possible breaking change with AllowTargetsPropagateToChildControls 
Modified By davesdig  on 7/3/2012 7:48:57 AM)

I have a runtime designer that has been working very well until my upgrade to the latest version of .NetHTML5 (Beta 3).  I could not figure out why I could no longer drop any of my controls on a child panel that is intended to contain children (such as a panel).  I then noticed the new property "AllowTargetsPropagateToChildControls"  and found this link to an "Issue"  http://support.visualwebgui.com/issue/ViewIssue.aspx?ID=10727 I have tried all combinations of true and false of this property for child and parent controls and can not get it to work the way it used to.  The best I can do is get the dragdrop event to raise on the parent even though I have the DragTargets property set to both parent and child.  I am hoping there is something I am not understanding and there is a way to fix this.    I can provide simple example if requested.

[Edit: sorry, original link was incorrect]

 

 
New Post 7/3/2012 7:27 PM
  davesdig
13 posts
No Ranking


Re: Possible breaking change with AllowTargetsPropagateToChildControls 

After some more playing around it appears that by setting the AllowTargetsPropagateToChildControls=false on a control that you want to drag onto another control completely disable the control from being dropped onto another control.  Here is a link to an simple test bench program to play with this new property https://www.dropbox.com/s/ggitludph2vxgmq/Test%20VWG%20Drag%20and%20Drop.zip

 
New Post 7/6/2012 2:00 PM
  palli
14313 posts
1st Level Poster




Re: Possible breaking change with AllowTargetsPropagateToChildControls 

 Hi,

Firstly, the name of this property has changed in 6.4.0 Release e and it now is AllowDropTargetsPropagation with explanation "A flag indicating whether this component allows its drag target to propagate to its contained components". The meaning of this is the exact opposite of what you have understood (I think). It means that if your Button would be inside a Panel, you could set DragTargets for the Panel and set AllowDropTargetsPropagation = true and you could drag the button to the same controls as set for Panel.DragTargets.

As for your breaking behaviour, then you are correct. This is a breaking behaviour documented in the breaking changes article here.  Please let me know if this description is hard to understand. 

Hope this helps,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 7/7/2012 9:23 AM
  davesdig
13 posts
No Ranking


Re: Possible breaking change with AllowTargetsPropagateToChildControls 
Modified By davesdig  on 7/7/2012 8:01:59 PM)

 Hi Pali, 

Thank you for your reply.  First, I do like the new propagation of the DragDrop even to the parent control.  I did misunderstand the functionality of this property.  I think overall, the new way that things work will make things easier.

A couple of observations:

  • The functionality as you have described seems to only have an effect when set at design-time.  At runtime, changes to the property does not have an effect.
  • There is no longer visual feedback at runtime as to which control the drop will take place.  In the previous version, the control on which the drop were to occur would be "darkened".   If you take my example: Hovering over the red control would darken the red panel (parent), and hovering over the blue panel would darken just the blue panel.  Now the red panel is darkened all of the time no matter which control is hovered over.  I have tried this in chrome, firefox, ie, and safari and get the same result.  Is there another property that needs to be set that I am missing?  If I am not missing something, this seems like a bug

[edit: re-checked and functionality is not exact but similar]

 
New Post 7/24/2012 4:48 PM
  palli
14313 posts
1st Level Poster




Re: Possible breaking change with AllowTargetsPropagateToChildControls 

 Hi Dave,

When writing up a better description for you on the new and enhanced implementation of the Drag & Drop mechanism in 6.4.0 d and later, it was a bit confusing and not providing the results we intended. We finally tracked it down to a bug which caused the Source in the DragDropEventArgs not being consistent. This bug has now been fixed in the upcoming 6.4.0 Release f.

I added a new section in the breaking changes article on the new properties and how they work. They will give you huge optimizations in some scenarios. Please view the new section here.

Please note that until we will release this fix, your results are bound to be confusing, so I recommend that you hang on until the fix will be available and then again take it for a spin and report any problems you may find.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  General Visual ...  Visual WebGui v...  Possible breaking change with AllowTargetsPropagateToChildControls
.NET HTML5 Web, Cloud and Mobile application delivery | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2012 Visual WebGui®       Visual WebGui weblog on ASP.NET Gizmox Blog Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS