browse other examples

Grid drag and drop sort, moveBefore

Here two methods are being demonstrated. columnFromPoint() which allows you to get the appropriate ColumnAdapter object by coordinates:
target = $scope.adapter.gridAdapter.columnFromPoint(evt.clientX, evt.clientY)
Another method is moveBefore() which provides an ability to move one column in front of another:
column.moveBefore(target)
col1 col2 col3
1item #1false
2item #2false
3item #3false
4item #4false
5item #5false
6item #6true
7item #7true
8item #8true
9item #9false
10item #10false