jquery - How to turn off sorting with jQueryUI sortable? -
I have applied the jQueryUI sorting list and it actually works well in some time, I disable the forward sorting Wish to do and order items because it is able to change the user without it.
Tried to do something like this:
$ ('sortable'). Sortable ('disabled');
And this:
$ ('sortable'). Each (function () {$ (this) .sortable ('disable');});
and:
$ ('Sortable'). Disable ();
and:
$ ('sortable'). cancel ();
And all the different combinations. All without success
Can anyone tell the right path & business; to do this?
Update: I am using jQuery 1.3.2 and jQueryUI 1.7.2. A potential problem may be that I have two independent sorted lists on the page, so I have 1 sorted and 2 squares. I'm actually doing this:
$ ('. Sortable2 '). Sorted ('disabled');
Update2: I can use the problem instead of #sortable. Everything works fine.
The first path is given in the example. I have just tested one of my own projects and it works fine. Which version of jQuery and jQuery UI are you using? I have 1.3.2 and 1.7.2 respectively.
Comments
Post a Comment