Saravananscope / dragtable

Automatically exported from code.google.com/p/dragtable
0 stars 0 forks source link

Not compatible with ajax loaded tables. #21

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Create a div container that loads a table from an ajax call. There is no
way to rescan for draggable tables without running
dragtable.makeDraggable($('myNewTable')). This will cause problems to the
table if it has already been load before.

Other than that, this is really cool, good work!

Original issue reported on code.google.com by jmudgl...@gmail.com on 17 Dec 2009 at 9:26

GoogleCodeExporter commented 8 years ago
I also load Ajax tables. The problem we experienced in our project was that the 
changed field order was only available after initialization of dragtable. We 
scan the new field order from the headers in the dom.

To find out if dragtable is loaded, I hacked the script and set a global var 
dragTableComplete to true when done. In my ajax, I set a timeout while 
dragtable is not loaded, before I do the ajax call.

It would be nice if a global var or a static dragtable property would become 
available to tell if loading is complete for a given page. So we could inquire 
that var instead of hacking our own.

Original comment by mcl...@spaceweb.nl on 17 Dec 2010 at 11:29