Wisej-DragDropSample custom InitScript scripts Requirement / Limitation

0
1

Strange behaviors YESTERDAY . Dynamically added controls.   Two buttons . When the script is in play both buttons will happily do the drag drop waltz for you.

Comment out the invocation of the script and only one button will play nicely regarding the drag drop waltz.

I’m not convinced that this was the behavior I observed last week regarding multiple dynamically added controls that need

drag  start events dynamically added to them.   It was stated that I didn’t need the script for drag drop functionality but it appears

I do need it if I am attempting to manipulate multiple dynamically created controls.

Sample attached just comment out

my method to call the script  FixDragDropForButton() and you will no longer be able to drag the button    just the label.

Reference:

ORIGINAL question was here  [ https://wisej.com/support/question/wisej-dragdropsample-custom-initscript-scripts-requirement-limitation ]

  • Christian Programmer
    While we are at it PLEASE what’s the deal with passing null for the data value in the Control_DragStart’s call to control.DoDragDrop ? control.DoDragDrop(null, DragDropEffects.Move); VERSUS: control.DoDragDrop(control, DragDropEffects.Move);
  • You must to post comments
0
0

Christian,

I meant upgrade to Wisej.NET 3.2.0 or new via the Visual Studio Nuget Package Manager.
About the reordering, it´s easy to add this to e.g. a FlowLayoutPanel by using the Movable property of the buttons.

Find a simple sample attached.

Best regards
Frank

  • You must to post comments
0
0

I noticed that VWG  allowed re ordering of items in the drag drop panel whilst WiseJ doesn’t reorder items via drag drop.

So in the attached image if Box A B and C are in the panel   already Drag Dropped from  top panel  I cannot manually reorder their sequence in the destination panel to my liking for example manually drag drop in same panel such that the items are now listed in the order of C, B, A .

You instructed “Please upgrade your nuget packages and try again.”

Which nuget packages might you be referencing please just for future reference,,,   thank you .

I have confirmed that I can manipulate multiple controls individually after removing the call to the script.

Thank you

 

 

 

  • You must to post comments
0
0

Christian,

I´ve tried your sample with 3.2. (where Drag & Drop issues had been fixed) and it works fine, w/o calling the FixDragDropForButton method.
Please upgrade your nuget packages and try again.

Best regards
Frank

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.