2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

jqGridメモ

Last updated at Posted at 2016-05-01

jqGridのオプションは、jqGrid wiki http://www.trirand.com/jqgridwiki/doku.php に全て載っているわけではなく。

移動不可列の定義

sortableで移動不可列を定義できる。

$('#hogeTbl').jqGrid({
    // 移動不可列を定義
    sortable: {
        exclude: '#hogeTbl_CHECK'
    },                
})

データを一括して読み込む

(一応、wikiに記述はあるが、やや分かり難いような)
jqGridはデータを一括して読み込むことができる。

$('#hogeTbl').jqGrid({
    // データを一度に読み込み、100行ごとに生成する
    loadonce:true,
    scroll:1,
    rowNum:100,        
})

リロード時のオプションについて

jqgrid reloadGrid with loadonce set to true
http://stackoverflow.com/questions/5397671/jqgrid-reloadgrid-with-loadonce-set-to-true

固定列について

jqGridは固定列(Frozen Cols)が利用できるが、DOMで実体化したテーブルに対しての固定列化処理となる為、これは動的読み込みと相性が悪い。
この場合、SlickGridの方がいいかも。

free版

最新のjqGridは有償だが、4.7ベースは無償(MITライセンス)。
https://github.com/free-jqgrid/jqGrid

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?