2013-03-20 50 views
0

我想组数据相应分组报头剑道UI网格组头

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

剑道UI电网分组的任何可能性......

回答

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

+0

嘿智能工作的好友.....非常感谢你:) – sivaji 2013-03-20 10:05:08

+0

欢迎。随时接受我的答复作为您的问题的答案。 – 2013-03-20 10:42:43