Sortable demo
Directors
Total 13 items.
ID | Order | Name |
---|---|---|
7 | 0 | Tony Scott |
10 | 1 | David Cronenberg |
4 | 2 | Christopher Nolan |
2 | 3 | Tim Burton |
8 | 4 | David Fincher |
1 | 5 | Steven Spielberg |
6 | 6 | Quentin Tarantino |
5 | 7 | John Woo |
13 | 8 | Martin Scorsese |
9 | 9 | Paul Verhoeven |
3 | 10 | James Cameron |
11 | 11 | Francis Ford Coppola |
12 | 12 | Ridley Scott |
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.