Wiki articles tagged with "gridview"

Showing 1-18 of 18 items.

GridView show sum of columns in footer.

Created 2 years ago by shiv shiv.

GridView show sum of columns in footer `PHP use yii\grid\DataColumn;

2 0
1 follower
Viewed: 102 505 times
Version: 2.0
Category: Tips

Batch Gridview data ajax send splitted in chunks displaying bootstrap Progress bar

Created 6 years ago by toaster toaster, updated 6 years ago by toaster toaster.

The scenario in which this wiki can be useful is when you have to send an (huge) array of model ids and perform a time consuming computation with it like linking every model to other models. The idea is to split the array into smaller arrays and perform sequential ajax requests, showing the calculation progress using a [Bootstrap Progress bar](https://www.yiiframework.com/extension/yiisoft/yii2-bo...

8 0
2 followers
Viewed: 36 816 times
Version: 2.0
Category: Tutorials

Pjax GridView: refresh page after delete

Created 7 years ago by hehbhehb hehbhehb, updated 7 years ago by CeBe CeBe.

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.

6 0
4 followers
Viewed: 51 300 times
Version: 2.0
Category: How-tos

Yii2 Report Grid

Created 8 years ago by Chris Backhouse Chris Backhouse, updated 7 years ago by Chris Backhouse Chris Backhouse.

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

6 0
7 followers
Viewed: 36 761 times
Version: 2.0
Category: Tips

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

Created 8 years ago by Amjad Khan Amjad Khan, updated 8 years ago by Amjad Khan Amjad Khan.

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

4 1
7 followers
Viewed: 94 189 times
Version: 2.0
Category: Tutorials

A Single Page with a List and a Detail

Created 9 years ago by softark softark, updated 9 years ago by Patrick Jones Patrick Jones.

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.

3 0
5 followers
Viewed: 59 506 times
Version: 2.0
Category: How-tos

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

Created 9 years ago by AlaFalaki AlaFalaki, updated 9 years ago by AlaFalaki AlaFalaki.

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)

3 0
4 followers
Viewed: 47 974 times
Version: 2.0
Category: Tips

Clear CGridView Filters, Sort & Pager

Created 10 years ago by le_top le_top, updated 10 years ago by le_top le_top.

Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

2 0
3 followers
Viewed: 20 591 times
Version: 1.1
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 10 years ago by Sreenadh Sreenadh, updated 10 years ago by Sreenadh Sreenadh.

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

7 0
16 followers
Viewed: 170 654 times
Version: 2.0
Category: How-tos

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

Created 10 years ago by Scott_Huang Scott_Huang, updated 10 years ago by Scott_Huang Scott_Huang.

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

1 0
5 followers
Viewed: 78 166 times
Version: 2.0
Category: Tips

Filter & Sort by Summary Data in GridView Yii 2.0

Created 11 years ago by Kartik V Kartik V, updated 11 years ago by Kartik V Kartik V.

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.

5 2
48 followers
Viewed: 74 788 times
Version: 2.0
Category: Tutorials

Escape from Default's Yii2 Delete Confirm Box

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 9 years ago by Cozumel Cozumel.

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: 47 817 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

Created 11 years ago by Antonio Ramirez Antonio Ramirez, updated 11 years ago by Antonio Ramirez Antonio Ramirez.

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.

49 0
37 followers
Viewed: 335 326 times
Version: 2.0
Category: How-tos

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

Created 11 years ago by Kartik V Kartik V, updated 6 years ago by softark softark.

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

14 3
64 followers
Viewed: 276 821 times
Version: 2.0
Category: Tutorials

Update a part of content using AJAX when select a GridView row

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by CeBe CeBe.

Suppose you want to refresh a form or any content when a single row of CGridView is selected

1 0
9 followers
Viewed: 37 718 times
Version: 1.1
Category: How-tos

Display Status image on CGridView column

Created 12 years ago by Ankit Modi Ankit Modi, updated 6 years ago by samdark samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 22 902 times
Version: 1.1
Category: Tutorials

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 13 years ago by yJeroen yJeroen, updated 13 years ago by yJeroen yJeroen.

This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Intro

17 0
41 followers
Viewed: 76 659 times
Version: 1.1
Category: Tutorials

An easy way to use escopes and CActiveDataProvider

Created 14 years ago by Rafael Garcia Rafael Garcia, updated 14 years ago by Rafael Garcia Rafael Garcia.

Often used scopes to define criteria in our models. This is a very useful feature as it ensures that in any part of application applying the criteria defined by the scope when called it.

1 1
10 followers
Viewed: 38 485 times
Version: 1.1
Category: Tips