Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
enable AddRow オプションを使用したいのですが、新しい行をグリッドの一番上に表示したいのですが...何か提案があれば; Beloiw は slickgrid.js の doco です。
enableAddRow - (デフォルトは false) true の場合、空白行が一番下に表示されます。その行に値を入力すると、新しい行が追加されます。
ありがとうございました!
function addRowToTheTop(){ grid.getData().splice(0, 0, {}); grid.invalidateAllRows(); grid.updateRowCount(); grid.render(); }
この関数を呼び出して、グリッドの上部に空の行を追加します。あまり効果的ではありませんが、機能します。