Ag grid ag网格可以';隐藏列时不移动组列
我正在使用带有组列的ag网格。当其中一个组中存在隐藏列时,我无法手动移动组列 以下是列定义,“运动员”列隐藏:Ag grid ag网格可以';隐藏列时不移动组列,ag-grid,Ag Grid,我正在使用带有组列的ag网格。当其中一个组中存在隐藏列时,我无法手动移动组列 以下是列定义,“运动员”列隐藏: this.columnDefs = [ { headerName: "Athlete Details", pinned: null, lockPinned: true, marryChildren: true, children: [ { heade
this.columnDefs = [
{
headerName: "Athlete Details",
pinned: null,
lockPinned: true,
marryChildren: true,
children: [
{
headerName: "Athlete",
field: "athlete",
width: 150,
hide: true,
pinned: null,
lockPinned: true
},
{
headerName: "Age",
field: "age",
width: 90,
pinned: null,
lockPinned: true
},
{
headerName: "Country",
field: "country",
width: 120,
pinned: null,
lockPinned: true
}
]
},
{
headerName: "Sports Results",
pinned: null,
lockPinned: true,
marryChildren: true,
children: [
{
headerName: "Sport",
field: "sport",
width: 110,
pinned: null,
lockPinned: true
},
{
headerName: "Total",
field: "total",
width: 100,
pinned: null,
lockPinned: true
},
{
headerName: "Gold",
field: "gold",
width: 100,
pinned: null,
lockPinned: true
},
{
headerName: "Silver",
field: "silver",
width: 100,
filter: "agNumberColumnFilter",
pinned: null,
lockPinned: true
},
{
headerName: "Bronze",
field: "bronze",
width: 100,
pinned: null,
lockPinned: true
}
]
}
下面是一个plunker演示,包含完整示例:
在该示例中,运动员列是隐藏的。
将“运动员成绩”组列向右拖动后,无法将“运动成绩”组列向右拖动。
一旦从运动员列中删除hide=true,它就可以正常工作