0

それに応じてデータをグループ化しようとしています

Department A(Group)
    Class 1(Sub Group)
        Morning
        Afternoon
        Evening
    Class 2(Sub Group)
        Morning
        Afternoon
        Evening
Department B(Group)

剣道UIグリッドグループ化の可能性...

4

1 に答える 1

6

はい、これは剣道UIグリッドで可能です。サンプルコードは次のとおりです。

$("#grid").kendoGrid({
  dataSource: {
    data: [ { 
      department: "A",
      "class": 1,
      type: "Evening"
    },{ 
      department: "A",
      "class": 2,
      type: "Morning"
    }, { 
      department: "B",
      "class": 1,
      type: "Evening"
    }, { 
      department: "B",
      "class": 2,
      type: "Morning"
    }],
    // group by "department" and "class"
    group: [ { field: "department" }, { field: "class" } ] 
  },
  columns: [ { field: "type" } ]
});

そしてライブデモ: http: //jsbin.com/ejalut/1/edit

于 2013-03-20T09:28:19.563 に答える