473,324 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

yii2, CRUD, GridView::widget

103 100+
CRUD generated layout for me.

I would like to organize columns in several rows.
Is it possible with yii2?

For instance, with Django, it is possible to format layout by telling that first 5 columns would be displayed in the first row, than second 5 columns in the second row, etc..
One database record can be displayed in several rows of table.

Is it possible with yii2?

Expand|Select|Wrap|Line Numbers
  1.  <?= GridView::widget([
  2.         'dataProvider' => $dataProvider,
  3.         'filterModel' => $searchModel,
  4.         'columns' => [
  5.           ['class' => 'yii\grid\ActionColumn'],
  6.             ['class' => 'yii\grid\SerialColumn'],
  7.  
  8.             'id',
  9.             'th',
  10.             'nw_core_mat',
  11.             'nw_shell_mat',
  12. // .. tens of columns below, which i would like to display in 5 rows
  13.         ],
  14.     ]); ?>
Aug 24 '15 #1
0 1368

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: amber | last post by:
Hello, I'm looking for some guidance . I'm new to VB.NET and SQL server, and have been working on a project for a while. I have been reading up on implementing CRUD operations using stored...
3
by: Torben Madsen | last post by:
Hello, I have a C# problem that I hope you could help me with. I'm making a program where I need data from a database using ADO.NET. The problem is that I can't figure out how to retrieve...
4
by: lkamal | last post by:
What is CRUD? Read at http://lkamal.blogspot.com/
0
by: RickmanCR750 | last post by:
People, I have an old (php3?) script which does CRUD over a mySQL db. I've upgraded to php5 and PostgreSQL (on Linux), and the script bombs (multiple errors). I'm working through it at the moment,...
3
by: =?Utf-8?B?dGhlamFja29mYWxs?= | last post by:
Hi. Is there a way to generate the CRUD stored procedures for a table using the Visual Studio 2005? I tried to do it in a new database project, but I can't find a way to do it. Can VS 2005...
13
by: John Kraft | last post by:
Friends, I'm working on some crud stuff, and I was looking for opinions on the subject. Below, I have pasted some VERY simple sample code. Class2 is a "traditional" crud type object. In a...
11
by: walterbyrd | last post by:
With PHP, libraries, apps, etc. to do basic CRUD are everywhere. Ajax and non-Ajax solutions abound. With Python, finding such library, or apps. seems to be much more difficult to find. I...
0
by: CBFalconer | last post by:
For the past week I have been collecting data on the relative incidence of crud in the 18 newsgroups I monitor. Here crud is defined as anything that gets caught by my filters, and good is...
1
by: nospam | last post by:
Hello all, Using Net 2 0 and VS 2005 and MSSQL 2000... I am a newbie to ASP. I am trying to created a screen to manipulate a table - CRUD commands. The problem is the checkbox to...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.