Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/typo3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ag grid ag网格可以';隐藏列时不移动组列_Ag Grid - Fatal编程技术网

Ag grid ag网格可以';隐藏列时不移动组列

Ag grid ag网格可以';隐藏列时不移动组列,ag-grid,Ag Grid,我正在使用带有组列的ag网格。当其中一个组中存在隐藏列时,我无法手动移动组列 以下是列定义,“运动员”列隐藏: this.columnDefs = [ { headerName: "Athlete Details", pinned: null, lockPinned: true, marryChildren: true, children: [ { heade

我正在使用带有组列的ag网格。当其中一个组中存在隐藏列时,我无法手动移动组列

以下是列定义,“运动员”列隐藏:

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,它就可以正常工作