Good evening WiseJ folks
The sample solution Wisej-DragDropSample.sln implements some odd initialization script
FixDragDropForButton() this.InitScript = @”
The page loads, invokes a method to run this script (I don’t get that part) ,
dynamic controls are programmatically created in this page load
label, a button and the properties for AllowDrag as well as assigning events to these new ctrls
and event to some ctrls already laid down in the designer to address.
I believe I can hack out the appropriate methods and events but the script isn’t intuitive.
Is it generic ? are there control specific references in the script I didn’t see any specific control names or anything
in the script so I guess that’s why I am asking I remember a bit of old lisp but I don’t get this script or why its needed
or what it is doing ? Please and thank you.
Is there some additional documentation to the code sample?
Is this script required to implement the Drag/Drop functionality ?
Thank you very much for any assistance and insight !
MOVED Follow up question to here ==>
Hi Christian,
Would you mind attaching the sample you’re referring to?
In any case, we had a bug with the Drag&Drop feature in buttons a few releases back, and the InitScript you’re referring to was a quick workaround to the issue!
You won’t need to implement any kind of custom InitScript scripts into your controls to implement the Drag&Drop feature!
HTH,
Alaa