冻结 igGrid 中的第一列

问题描述 投票:0回答:1

使用(igGrid),有没有办法使列始终位于第一个位置?

Example

我当前的配置:

{
    "primaryKey": "ID",
    "height": "70vh",
    "autoGenerateColumns": false,
    "requestType": "POST",
    "autoCommit": true,
    "dataSourceType": "json",
    "responseDataKey": "data",
    "showHeaders": true,
    "fixedHeaders": true,
    "enableHoverStyles": false,
    "features": [
    {
        "name": "ColumnFixing",
        "fixingDirection": "left",
        "columnSettings": [
        {
            "columnKey": "check",
            "allowFixing": false,
            "isFixed": true
        },
        {
            "columnKey": "ID",
            "allowFixing": false,
            "isFixed": false
        }]
    },
    {
        "name": "ColumnMoving",
        "columnMovingDialogContainment": "window",
        "movingDialogWidth": 300,
        "columnSettings": [
        {
            "columnKey": "check",
            "allowMoving": false
        },
        {
            "columnKey": "ID",
            "allowMoving": false
        }]
    }]
}

我当前的配置保持第一列固定,我可以移动其他列,将它们固定在第一个位置。如何避免这种情况?

iggrid
1个回答
0
投票

如果我理解正确的话,看起来你想要永久固定的列是非数据列。

有一个选项可用于修复非数据列。您可以查看 infragistics API 文档以了解更多详细信息。这里

© www.soinside.com 2019 - 2024. All rights reserved.