2011-11-28 62 views
0
 

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

回答

0

John DeVight已經向Telerik MVC網格寫了一個extension。他有一個名爲hideGroupColumns的函數,它隱藏了分組的列。語法如下:

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

Telerik社區論壇有some discussion這個擴展。