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