Wiki articles tagged with "CGridView"

Showing 1-20 of 65 items.
Created 3 years ago by n-r, updated 3 years ago by n-r.

checkBox in CGridview

some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

1 0
2 followers
Viewed: 20 835 times
Version: 1.1
Category: Others
Created 3 years ago by le_top, updated 3 years ago by le_top.

Clear CGridView Filters, Sort & Pager

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: 11 342 times
Version: 1.1
Category: How-tos
Created 3 years ago by Peppe, updated 3 years ago by le_top.

How to keep filters simple in CGridView

The problem is not new: after setting some filters in a grid (typically in admin view), and gone to another page, returning in the grid's page I would like to find the filters with previous setting mantained.

0 0
2 followers
Viewed: 7 621 times
Version: 1.1
Category: How-tos
Created 3 years ago by le_top, updated 3 years ago by le_top.

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

1 0
3 followers
Viewed: 6 766 times
Version: 1.1
Category: Tips
Created 3 years ago by rafaelt88, updated 2 years ago by rafaelt88.

View a related field in CGridView

Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

1 0
3 followers
Viewed: 12 923 times
Version: 1.1
Category: Tips
Created 3 years ago by Louis Gac, updated 3 years ago by Louis Gac.

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Let's take the example of the above article to display an email button next to a delete button:

3 0
4 followers
Viewed: 13 906 times
Version: 1.1
Category: Tutorials
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Update specific cgridview html row after AJAX request

After of model update (successfull or not) throught CGridView (check the below link) you probably need to updates the specific row html in cgridview (not entire cgridview)

1 0
3 followers
Viewed: 15 392 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Insert a model record using CGridview

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 11 513 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Update CGridview row separately using ajax request

There are cases you want to update a record on CGridview directly

5 0
8 followers
Viewed: 18 017 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by Kostas Apazidis (KonApaz).

Advanced CGridview issues - custom button using php and html

This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)

1 0
2 followers
Viewed: 8 815 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by CeBe.

CSqlDataProvider in CGridView

In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

3 0
9 followers
Viewed: 26 807 times
Version: 1.1
Category: Tutorials
Created 4 years ago by chandran, updated 4 years ago by CeBe.

CGridView customized CCheckBoxColumn

Hi friends,

3 0
6 followers
Viewed: 14 290 times
Version: 1.1
Category: Tips
Created 4 years ago by sefburhan, updated 4 years ago by CeBe.

Saving CGridView filter

In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps

1 0
32 followers
Viewed: 9 396 times
Version: 1.1
Category: Tutorials
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by CeBe.

Take more control of CGridview and model searching (related model or another controller)

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 33 493 times
Version: 1.1
Category: How-tos
Created 4 years ago by Arockia Johnson SR, updated 4 years ago by CeBe.

Yii CGridView add custom button

Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework

2 0
7 followers
Viewed: 36 654 times
Version: 1.1
Category: How-tos
Created 4 years ago by Kostas Apazidis (KonApaz), updated 4 years ago by CeBe.

two or more different collected data in one CGridView

Assume that you have teachers and students model.

2 1
6 followers
Viewed: 11 978 times
Version: 1.1
Category: How-tos
Created 4 years ago by Sharon Lavie, updated 2 years ago by Sharon Lavie.

Multi Data Provider

Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

1 0
4 followers
Viewed: 10 681 times
Version: 1.1
Category: Tips
1 0
6 followers
Viewed: 20 311 times
Version: 1.1
Category: Tips
Created 4 years ago by Ankit Modi, updated 4 years ago by Ankit Modi.

Display image on CGridView column and open a fancy-box

1) Add a fancy-box extension on admin page

0 0
2 followers
Viewed: 13 951 times
Version: Unknown (update)
Category: Tutorials
Created 4 years ago by ezekielnoob, updated 3 years ago by ezekielnoob.

CGridView Date Range Without Cookies or Session (External Filtering)

Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below: grid

3 0
8 followers
Viewed: 15 814 times
Version: 1.1
Category: How-tos