Wiki articles tagged with "gridview"

Showing 1-12 of 12 items.
Created 6 months ago by hehbhehb, updated 3 months ago by CeBe.

Pjax GridView: refresh page after delete

Normally, after clicking the delete button in gridview, the record will be deleted and the page will refresh, but the page number in query string is lost. This is not always the case we expect.

5 0
2 followers
Viewed: 7 557 times
Version: 2.0
Category: How-tos
Created a year ago by Chris Backhouse, updated 7 months ago by Chris Backhouse.

Yii2 Report Grid

There are some very advanced grids in the Yii2 community, specifically Kartik's amazing gridview extensions but they all designed for interactive screen use.

5 0
6 followers
Viewed: 18 437 times
Version: 2.0
Category: Tips
Created 2 years ago by Amjad Khan, updated 2 years ago by Amjad Khan.

Yii2 GridView Sorting and Searching with a Junction Table Column(Many to Many Relationship)

Following is the table structure

tblgroups

CREATE TABLE IF NOT EXISTS `tblgroups` (
  `id` int(11) NOT NULL,
  `groupname` varchar(150) NOT NULL,
  `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1=Acitve,2=Inactive',
  `date` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

tblcontacts

2 0
6 followers
Viewed: 41 647 times
Version: 2.0
Category: Tutorials
Created 2 years ago by softark, updated 2 years ago by Patrick Jones.

A Single Page with a List and a Detail

The CRUD generator of Gii has done a wonderful job for you, and you already have a list of items in the "index" page and a detailed view of a specified item in the "view" page.

1 0
4 followers
Viewed: 12 799 times
Version: 2.0
Category: How-tos
Created 2 years ago by AlaFalaki, updated 2 years ago by AlaFalaki.

How to change GridView delete confirmation message for specific controllers only?

Hello,
If you want to give extra attention for some specific delete actions and you don't want to override whole yii.confirm JS method here is what you can do:
(I've only put the ActionColumn part of the GridView here to just give you the idea)

1 0
3 followers
Viewed: 27 827 times
Version: 2.0
Category: Tips
Created 4 years ago by Sreenadh, updated 4 years ago by Sreenadh.

Pjax on ActiveForm and GridView - Yii2

Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

5 0
13 followers
Viewed: 110 494 times
Version: 2.0
Category: How-tos
Created 4 years ago by Scott_Huang, updated 4 years ago by Scott_Huang.

Step by step for how to full export Yii2 grid to excel

We will leverage Yii2-excelview widget. So, first of all is install Yii2-excelview:

0 0
5 followers
Viewed: 50 157 times
Version: 2.0
Category: Tips
Created 4 years ago by Kartik V, updated 4 years ago by Kartik V.

Filter & Sort by Summary Data in GridView Yii 2.0

This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

4 2
48 followers
Viewed: 53 481 times
Version: 2.0
Category: Tutorials
Created 4 years ago by Antonio Ramirez, updated 2 years ago by Cozumel.

Escape from Default's Yii2 Delete Confirm Box

If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

4 1
16 followers
Viewed: 31 560 times
Version: 2.0
Category: How-tos
Created 4 years ago by Antonio Ramirez, updated 4 years ago by Antonio Ramirez.

Displaying, Sorting and Filtering Model Relations on a GridView

One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

25 0
29 followers
Viewed: 224 703 times
Version: 2.0
Category: How-tos
Created 4 years ago by Kartik V, updated 5 months ago by Kabinenkoffer.

Filter & Sort by calculated/related fields in GridView Yii 2.0

This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

11 2
63 followers
Viewed: 185 059 times
Version: 2.0
Category: Tutorials
Created 5 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Display Status image on CGridView column

How to display status image on admin gridview.

0 0
4 followers
Viewed: 15 722 times
Version: all
Category: Tutorials