Sortable demo
Directors
Total 13 items.
ID | Order | Name |
---|---|---|
7 | 0 | Tony Scott |
8 | 1 | David Fincher |
6 | 2 | Quentin Tarantino |
11 | 3 | Francis Ford Coppola |
1 | 4 | Steven Spielberg |
9 | 5 | Paul Verhoeven |
12 | 6 | Ridley Scott |
10 | 7 | David Cronenberg |
4 | 8 | Christopher Nolan |
5 | 9 | John Woo |
2 | 10 | Tim Burton |
13 | 11 | Martin Scorsese |
3 | 12 | James Cameron |
Simple sorting
The directors are sortable by dragging and dropping them.
After sorting, the Order value will be updated. However, to see this, you have to refresh the page.
The table is implemented with a SortableGridView. Click here to see a SortableListView in action.
This may not work in mobile browsers. Therefore, there is also a SortableGridViewJquery, which depends on jQuery. It is demonstrated here.
Click on a director to see One-to-many sorting.
Note: You may get unpredictable results with this demo if someone else on the web is manipulating the data simultaneously.