Yii Framework Forum: Cgridview Header Combining - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Cgridview Header Combining Rate Topic: -----

#1 User is offline   martijnjonkers 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 07-June 13

Posted 27 February 2014 - 05:39 AM

Is there a way to group columns in the header of a CGridview?

example:

+-----------------------------------------------------------------------+
|                 |                 |           Group Header            |
|    ColumnA      |    ColumnB      |-----------------------------------|
|                 |                 |     ColumnC     |     ColumnD     |
+-----------------------------------------------------------------------+
|        0        |       ...       |       ...       |      ...        |
+-----------------------------------------------------------------------+
|        1        |       ...       |       ...       |      ...        |
+-----------------------------------------------------------------------+
|        2        |       ...       |       ...       |      ...        |
+-----------------------------------------------------------------------+


I saw the groupgridview extension, but it does not give me this functionality.

thanks
0

#2 User is offline   martijnjonkers 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 43
  • Joined: 07-June 13

Posted 27 February 2014 - 08:43 AM

just to answer my own question:

I found this: http://www.yiiframew...r-in-cgridview/

edited it a small bit to support rowspan also.

that solved it.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users