sortable

Best approach for sortable table with a lot of data

On our web application, the search results are displayed in sortable tables. The user can click on any column and sort the result. The problem is some times, the user does a broad search and gets a lot of data returned. To make the sortable part work, you probably need all the results, which takes a long time. Or I can retrieve few r...

Radio Buttons getting deselected when dragging item using jQuery Sortables

I'm using the jQuery UI sortables plugin to allow re-ordering of some list items. Inside each list item, I've got a couple of radio buttons which allow the item to be enabled or disabled. When the item is dragged, both radio buttons get deselected, which doesn't seem like it should be happening. Is this correct behavior, and if not, w...

Implementing A Draggable/Resortable Stacked List in jQuery

I'm needing to make this layout editor that uses a good bit of jQuery for letting one resort the items on their resume. I envisioned showing a dialog with a graphical representation of the sections, sort of like: [Details - locked -- immovable] [Overview -- immovable, but can be hidden or shown again] ----imaginary line where things can...

Mouse over events not fired when using jQuery ui.sortable

I'm using jQuery UI Sortables to sort items between lists and drag / drop items from one list to the other. The lists are collapsible with header DIVs that control the expand / collapse operations. I would like to have the lists expand automatically when hovering over their title DIVs with the mouse, but only when I'm currently sorting...

jQuery Sortable callbacks not working?

I'm using the Sortable component of jQuery UI. The callbacks don't seem to work at all, even with this minimalistic test: <script type="text/javascript" src="jquery-1.3.js"></script> <script type="text/javascript" src="jquery-ui-personalized-1.6rc4.js"></script> <script type="text/javascript"> $(document).ready(function () { $("#outer"...

jQuery - moving sortable item to connectWith sortable causes intermittent refresh of all sortables

Have two connected sortable lists inside a div. Need to be able to reorder items in each list, and also drag items from top list to bottom list within the same 'portlet' div (but not drag them to another div. This is working (sort of) but seems to be randomly resorting lists on drop - back to the original order (depending on browser, thi...

jQuery UI Sortable connectWith Load Time Performance on a Calendar

jQuery UI Sortable + Draggable 1.6rc5 WHAT I AM DOING: Creating a calendar with varying date ranges (ex: could be 1 week displayed, could be 20 weeks displayed). This calendar has events in each day, and the events are sortable within the day itself, as well as between all other days on the visible calendar. My average calendar date r...

Javascript error re connectWith variable on sortable list (jquery)

Have tried everything to get this working. Basically within each portlet there are 2 sections and users should be able to drag items from one section to the other (within the same portlet). As the sortables are generated dynamically, have tried to do something similar by creating a variable for connectWith, but keep getting javascript er...

jQuery UI put items into other containers

I search a good way to put <li> entrys into other <ul> container. The clue is, that when the <li> element is dropped into it's origin <ul> it should be reverted to it's origin place. I do not want them to be sortable. When it is droppen on an other list, it should be added to that <ul>. I am using the sortable plugin with the "connectWi...

Sortable list in WCF

Based on this article http://www.codeproject.com/KB/linq/bindinglist_sortable.aspx I implemented my bussines object with sortable feature. When I send the object to the client app (winfoms), the objects is not sortable. Does anyone have a solution for this? Thanks for the answer, Jani ...

Python equivalent to java.util.SortedSet?

Does anybody know if Python has an equivalent to Java's SortedSet interface? Heres what I'm looking for: lets say I have an object of type foo, and I know how to compare two objects of type foo to see whether foo1 is "greater than" or "less than" foo2. I want a way of storing many objects of type foo in a list L, so that whenever I trav...

jQuery: What to do with the list that sortable('serialize') returns?

With jQuery I'm retrieving positions of a sortable list using 'serialize', like this: var order = $('ul').sortable('serialize'); The variable 'order' then receives the following: id[]=2&id[]=3&id[]=1&id[]=4&id[]=5 Now how can I use this data in an ajax call? This is how I plan to do it, but it's ugly and I can't change the parameter...

jQuery draggable:sortable

Hi, I am using the JQuery libs to implement drag and drop. How do I get at the element that is being dragged when it is dropped into sortable list? I want to get the id of the div being dragged. The following element is dragged: <div class="control" id="control[1]" > <img src="img/controls/textfield.png" /> </div> I have the stand...

Persist nested jquery sortable list

The Problem: I have a nested list on my configuration page that looks like this: <a id='Save'>Save<a> <ul id='configuration-list'> <li id='e1'>Elem A <ul> <li id='ey'>Elem Y </li> <li id='ex'>Elem X <ul><!-- and so on until 5 levels of nesting --></ul> </li> <li id='ez'>Elem...

Jquery Help : Draggable to Sortable and then back to draggable again.

I have a pool of items in the drag list which is connected to a sortable using connectToSortable option. Now I want to remove some items from this sort list and move them back to the drag list. Sort of like an undo. Suppose the user moves some 5 items to sort list and decides he/she wants only 4 items, and decides to just drag the unwant...

What's the Postgresql equivalent of string.Format("{0:s}", DateTime.Now) ?

What's the equivalent of sortable datetime/timestamp varchar in PostgreSQL? Console.WriteLine("{0:s}", DateTime.Now); sample format output: 2000-05-04T15:30:59 This works, SELECT now::varchar, output is '2009-03-25', but only for date type, wondering what's the equivalent for timestamp. Note, i know date is sortable in and of itse...

jQuery sortable - how to add a sort indicator?

I've successfully implemented the jQuery sortable() plugin but want to enhance it with a sort indicator. This would be a vertical bar in between the items where the draggable can be dropped. See the image below for an example. Can this easily be achieved with the sortable() plugin? ...

jQuery portlet and dialog box problem

Dear All, I create sortable element and attach an on-click event on every portlet to open dialog box, but when i open (drag more portlet to the main dashboard), and click the setup link (on the header of the portlet) the alert() (i setup for testing purpose) always fire for every portlet on the main dashboard, why is this happen ? B...

ASP.NET MVC. Clean way to implement persistant sorting?

I still haven`t found any example of sorting implementation through paging in ASP.NET MVC (sort by name->press page 2->page 2 is still sorted by name). I could "hack" it, make it dirty, but i`m sure there have to be good "how-to" guides for this. What about sorting by two columns? ...

jQuery: draggable item added to a sortable list

Hello, I have a sortable list and a draggable div: <div id="draggable">Add Item</div> <ul id="sortable"> <li>item 1</li> <li>item 2</li> <li>item 3</li> <li>item 4</li> <li>item 5</li> </ul> #sortable is already a .sortable(). I should be able to "drag" another item between any of the list items (first, middle, l...