Wiki

Articles tagged with "cgridview"X
Displaying 1-10 of 65 result(s).

checkBox in CGridview

Created 2 years ago by n-rOthers1 comment – viewed 17,573 times – ( +1 / -1 ) – version 1.1
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

Clear CGridView Filters, Sort & Pager

Created 2 years ago by le_topHow-tos0 comments – viewed 10,019 times – ( +2 / -1 ) – version 1.1
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.

How to keep filters simple in CGridView

Created 2 years ago by PeppeHow-tos3 comments – viewed 6,692 times – ( +1 / -1 ) – version 1.1
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.

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

Created 3 years ago by le_topTips1 comment – viewed 6,268 times – ( +1 / -1 ) – version 1.1
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.

View a related field in CGridView

Created 3 years ago by rafaelt88Tips1 comment – viewed 11,771 times – ( +6 / -1 ) – version 1.1
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".

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

Created 3 years ago by Louis GacTutorials1 comment – viewed 12,560 times – ( +6 / -1 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

Update specific cgridview html row after AJAX request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 13,675 times – ( +2 / -1 ) – version 1.1
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)

Insert a model record using CGridview

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 10,281 times – ( +2 / -1 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Update CGridview row separately using ajax request

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 16,706 times – ( +8 / -1 ) – version 1.1
There are cases you want to update a record on CGridview directly

Advanced CGridview issues - custom button using php and html

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 7,782 times – ( +1 / -1 ) – version 1.1
This wiki shows about how to make a custom column or how to pass php-Yii-html code in CButtonColumn (as a button)