Webdev 22 Drag and drop tables or list box

Startbeitrag von DW am 30.11.2017 21:08

Hello All,

Is it possible to program drag and drop in tables?

In the help it says you can on list box but not able to get it to work.

I have done it in Windev and understand it well just can not for the life of me get it to work in WEBDEV.

DW

Antworten:

Anyone?

von DW - am 02.12.2017 21:03
Hi DW,

Did you look at the unit examples. There is one called "The features of drag and drop HTML5".

Best regards,

Aad

von Aad Gouka - am 03.12.2017 14:56
Hello Aad,

Yes I did the example works I use the same code and list box I get nothing.

DW

von DW - am 03.12.2017 21:28
Hi DW,

Just to be on the save side, did you the put HTML5 switch on at the projectdesdription tab->Advanced "Options for generating the HTML5 code" ?

Best regards,

Aad

von Aad Gouka - am 03.12.2017 22:24
Hello Again Aad,

That is yes. I going to take a few days off and try again later in the week.

Thanks for your input.

DW

von DW - am 04.12.2017 01:22
Hi DW,

DnD in WB is only possible with most simple controls like edit boxes, list boxes, images, ... But as far as I know (haven't looked at WB22 anymore) impossible on tables, treeviews, loopers, etc... I certainly sent enhancement requests to PCS on this going back to WB19 or even WB18. Maybe there are enhancements in WB23 in this area but I haven't verified.

Have tried doing DnD on tables and loopers with JQuery a couple of years ago but as far as I got the DOM on these WB objects is impossible to be exploited out of JQuery. That was and still is my main criticism on WB: it's not standard nor open, very proprietary with an absolute lack of control on the generated html/css making it impossible to easily make advanced high performant front ends for the web... On top of that you can't use third party UI libraries like the ones from Syncfusion or Telerik which are way more advanced than the WB native ones. These are the main reasons we decided to drop WB two years ago.

Doing DnD for the web using 'standard/more open' web technologies and IDE's works out of the box in most cases and you'll find millions of examples on how to achieve that (with e.g. the UI updating to highlight the insertion point during the dragging and a post back to save the changes during the drop for example).

It will work for the basic controls in WB, but reading your requirement about doing DnD with tables is completely impossible to my knowledge I'm afraid.

Just my 2 cents,

Peter H.

von Peter Holemans - am 04.12.2017 08:56
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.