Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to resize columns with mouse inside ng-grid control

Tags:

ng-grid

Hello a have a simple question I have defined columns with property resizable: true. How do I manage to let user re-size column with their mouse, like they will do in most grid control?

like image 730
user3119630 Avatar asked Dec 21 '13 19:12

user3119630


1 Answers

Columns are resizable by default, but you have to activate resizing on the whole grid by setting enableColumnResize to true in the grid options. See this Plunker.

$scope.gridOptions = { 
    data: 'myData',
    enableColumnResize: true
};
like image 167
Geoff Avatar answered Oct 18 '22 10:10

Geoff