简体   繁体   English

Ag-grid 行拖动属性在 angular 组件中不起作用

[英]Ag-grid row drag property is not working in angular component

-> [rowDragManaged]="true" this property is not working in my ag-grid component -> [rowDragManaged]="true" 此属性在我的 ag-grid 组件中不起作用

-> Check the image one from the backend team I got rowdrag true property in columnDefs -> 检查来自后端团队的图像我在 columnDefs 中得到了 rowdrag true 属性

->In image 2 in the UI also it is applied ->在 UI 中的图像 2 中也应用了它

->But in image 3 when I add [rowDragManaged]="true" in my HTML ag-grid component it is disappearing from the UI how to fix it and make row drag work properly here ->但是在图 3 中,当我在我的 HTML ag-grid 组件中添加 [rowDragManaged]="true" 时,它从 UI 中消失了如何修复它并使行拖动在这里正常工作

图一 , , 图二 , , 图3

 <div @fadeIn>
            <ag-grid-angular
              style="width: 100%; height: calc(94vh - 150px);"
              class="ag-theme-balham"
              [rowData]="agGridOptions?.results"
              [columnDefs]="agGridOptions?.columnDefs"
              [rowDragManaged]="true"
              [animateRows]="animateRows"
              [rowGroupPanelShow]="'always'"
              [floatingFilter]="agGridOptions?.floatingFilter"
              [paginationAutoPageSize]="paginationAutoPageSize"
              [paginationPageSize]="paginationPageSize"
              [pagination]="pagination"
              (modelUpdated)="onDataRendered($event)"
              (rowClicked)="onRowClicked($event?.data)"
              (rowSelected)="onRowSelected($event)">
            </ag-grid-angular>
          </div>

set [pagination]="false" it will work设置 [pagination]="false" 它将起作用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM