sebfz1 / wicket-jquery-ui

jQuery UI & Kendo UI integration in Wicket
http://www.7thweb.net/wicket-jquery-ui/
Other
93 stars 58 forks source link

Sortable on a <table> #265

Closed Lessy closed 7 years ago

Lessy commented 7 years ago

Hi Sebastien,

Sortable works fine on <ul> with <li>-tags but if I use a <table> with <tr>-Tags instead (with <td>-tags inside of it of course), it stops working. If I drag a <tr>, the whole table is being dragged. So how can I make the <tr>-tags inside my <table> sortable by drag&drop? And is this evt. something that can be done with the Kendo Datatable-component? Thanks and regards Hans

Lessy commented 7 years ago

Hi Sebastien, I realized that this has nothing to do with the Wicket-integration but with JQueryUI#sortable itself. The solution is simple: connect Wicket-Sortable with tbody instead of table and it works "magically". The tr's are draggable and droppable :-)

Sorry for disturbance, regards Hans