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