Wiki articles in category How-tos tagged with "gridview"

Showing 1-7 of 7 items.

Pjax GridView: refresh page after delete

Created 8 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: 56 040 times
Version: 2.0
Category: How-tos

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: 64 539 times
Version: 2.0
Category: How-tos

Clear CGridView Filters, Sort & Pager

Created 11 years ago by le_top le_top, updated 11 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: 22 297 times
Version: 1.1
Category: How-tos

Pjax on ActiveForm and GridView - Yii2

Created 11 years ago by Sreenadh Sreenadh, updated 11 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: 176 969 times
Version: 2.0
Category: How-tos

Escape from Default's Yii2 Delete Confirm Box

Created 12 years ago by Antonio Ramirez Antonio Ramirez, updated 10 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: 50 216 times
Version: 2.0
Category: How-tos

Displaying, Sorting and Filtering Model Relations on a GridView

Created 12 years ago by Antonio Ramirez Antonio Ramirez, updated 12 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: 366 247 times
Version: 2.0
Category: How-tos

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

Created 12 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 12 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: 39 705 times
Version: 1.1
Category: How-tos