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,
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
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
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
Please login first to submit.