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)
{{item.name}}
{{item.col1}} {{item.col2}} {{item.col3}}