将列数据显示为telerik radgrid中的标题

时间:2011-11-28 05:49:23

标签: asp.net telerik radgrid


I have a table in dataset like:

-------------------
id  class name      sub 
------------------------
1   mca   aditya    network
2   mca   abhishek  daa
3   mca   akhilesh  algorithm
4   btech ram       cs
5   btech shyam     ds
6   btech anand     client/server
7   mba   furqan    os
8   mba   arvind    marketing
9   mba   aayush    hr

I want a result set in telerik rad grid like the following:

----------------
class    name      sub
------------------------
mca      aditya    network
         abhishek  daa
         akhilesh  algorithm
btech    ram       cs
         shyam     ds
         anand     client/server
mba      furqan    os
         arvind    marketing
         aayush    hr

1 个答案:

答案 0 :(得分:0)

John DeVight已经向Telerik MVC网格写了extension。他有一个名为hideGroupColumns的函数,它隐藏了分组的列。语法如下所示:

$('#grid').data('tGrid').hideGroupColumns()

Telerik社区论坛有some discussion此扩展程序。