how to resize columns with mouse inside ng-grid control
Asked Answered
A

1

8

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?

Al answered 21/12, 2013 at 19:9 Comment(0)
E
13

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
};
Eyewash answered 31/12, 2013 at 2:44 Comment(1)
also add , 'ui.grid.resizeColumns' module and in div tag ui-grid-resize-columns <div ui-grid="vm.gridOptions" ui-grid-exporter ui-grid-selection ui-grid-pinning ui-grid-resize-columns class="grid"> </div>Decadence

© 2022 - 2024 — McMap. All rights reserved.