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
  • You cannot reply to this topic

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

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