image

  • フォト Amazonギフト券
    ※この時計の時刻は、閲覧しているパソコンのものであり、必ずしも正確な時間とは限りません

検索

最近のトラックバック

無料ブログはココログ

« 2012-01-15 | トップページ | 2012-08-15 »

2012-02-18

2012-02-18

json データを treegid で表示する例

json データを treegid で表示する例を以下に置いた。
  https://gist.github.com/1856467

web 上にも json データを treegid で表示するサンプルはいくつかある。

- http://www.trirand.com/blog/?page_id=393/treegrid/json-and-xml-treegrid-complete-sample-solved/
> jQuery Grid PluginJSON and XML Treegrid complete sample (SOLVED) | TreeGrid | » Forum

- http://stackoverflow.com/questions/6788727/jqgrid-tree-grid-with-local-data
> javascript - jqGrid tree grid with local data - Stack Overflow

treegrid 表示のポイント:
 grid には 次の設定をする。
     treeGrid: true,
     treeGridModel: 'adjacency' 
     ExpandColumn: '...'
  json データの cell データの末尾に次の項目を追加する。
      level           階層 (0,1, ...)
      parent       親の Cell の id
      isLeaf        bool 値
      expanded   bool 値
      loaded        bool 値

« 2012-01-15 | トップページ | 2012-08-15 »

mokuji

2013年12月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        

google

  • twitter
  • __
  • _
    Googleボットチェッカー

合わせて読む

  • 合わせて読む
    フィードメーター - katoy: cocolog あわせて読みたい

リンク