jquery sortable scroll problem
Posted
by Sam Vloeberghs
on Stack Overflow
See other posts from Stack Overflow
or by Sam Vloeberghs
Published on 2010-03-22T00:07:59Z
Indexed on
2010/03/22
0:11 UTC
Read the original article
Hit count: 1003
Hi
I'm having problems using the sortable function of jQ:uery UI. The scroll doesn't seem to work..
If the second list ( lists are created on the table rows in a tbody and each tbody is connect ) isn't visible I want it to be possible to scroll towards it for dropping my table row.
This is my HTML set up:
<ul>
<li>
<ul>
<li>
<table class="treeleerling">
<tbody class="oder0">
<tr class="suborder0">
</tr>
<tr class="sub1order">
</tr>
</tbody>
</table>
</li>
</ul>
</li>
<li>
<ul>
<li>
<table class="treeleerling">
<tbody class="oder1">
<tr class="suborder0">
</tr>
<tr class="suborder1">
</tr>
</tbody>
</table>
</li>
</ul>
</li>
</ul>
And jQuery code
$(document).ready(function() {
$("#left tbody").sortable({
connectWith : '#left tbody',
scroll : true,
scrollSensitivity: 40,
});
});
The sorting works fine, but the scrolling doesnt.. I'm doing something wrong or what? Plz help and advice.. Thx in advance!
© Stack Overflow or respective owner