Yii Framework Forum: Grid That Group Columns [Put Few Attributes In 1 Column] - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

Grid That Group Columns [Put Few Attributes In 1 Column] Rate Topic: -----

#1 User is offline   Practice_OPL 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 7
  • Joined: 17-July 14

Posted 23 July 2014 - 03:05 AM

I chose Yii, because of it's great 'GridView' feature.
After few days I found out that there is no option to group model attributes (put them in 1 column). This option would be very useful when you want show grid of model that has 50 attributes.
Example:
In model 'ShopTransaction' are attributes: ..., name, surname, street, street_number, city, city_code, country, ...

Normal GridView show them in 7 columns. Would be nice if I could put all of them in one column and set some separators like " " or ",\n" between attributes.

I made classes that does it ( http://www.yiiframew...post__p__255759 ), but I think it's not nice to modify framework class (Column.php), so maybe you could add something like that in Yii2.
0

#2 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 651
  • Joined: 29-August 12

Posted 07 July 2015 - 02:13 PM

With release 3.0.5 of yii2-grid, grid grouping functionalities have been added that allow to group data including master-detail nesting, adding group summaries, dynamic formatting and more. Refer group grid documentation and grid grouping demo for details.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • This topic is locked

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