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