search

Home  >  Q&A  >  body text

angular.js - angularjs ng-grid How to set a column to be non-dragable without scroll bars

1. A certain column cannot be dragged
http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions.columnDef
Because I set showGroupPanel: true, you can drag and drop to filter
The api didn't find that attribute and asked me to set a certain column separately and not be draggable.

2. No need for scroll bars
http://ui-grid.info/docs/#/api/ui.grid.class:GridOptions

I see in the api there is enableHorizontalScrollbar enableVerticalScrollbar
Horizontal and vertical scrollbar properties
But I can't understand its annotation. If it's not false, why should I use never?

In fact, you can also make it adaptive.

淡淡烟草味淡淡烟草味2813 days ago1427

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-05-15 16:56:03

    Use enableColumnMovingattributes: Look at my Plunker

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-15 16:56:03

    https://github.com/angular-ui/ui-grid/wiki/Defining-columns

    groupable:false uses this attribute

    reply
    0
  • Cancelreply