2

iggrid に「RowSelectors」機能を実装しようとしていますが、次の行に変更されません。

さらに調べてみると、選択した行メソッドがあり、各行は同じ ID を示しています。変数で静的jsonを使用し、それをデータソースとして使用すると、ajax経由でデータを返しています。期待どおりに機能するため、問題が何であるかわかりません..

 $("#selector").igGrid("selectedRow");

コントロールを押しながらクリックすると、行の変更しかできません..

Object {element: n.fn.init(1), index: 0, id: 3407751001}

次の行は

Object {element: n.fn.init(1), index: 1, id: 3407751001}

設定..

features: [
    {
        name: "Sorting",
        columnSettings: [
            {
                columnIndex: 4,
                allowSorting: true,
                firstSortDirection: "ascending",
                currentSortDirection: "descending"
            }
        ]
    },
    {
        name: 'RowSelectors',
        enableCheckBoxes: true,
        checkBoxStateChanging: function (ui, args) {
            return false;
        },
        multipleSelection: true,
        rowSelectorClicked: function (evt, ui) {
            // Handle event  
        },
    },
    {
        name: 'Selection'
    }
]
4

1 に答える 1