Wiki

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

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

Created 2 months ago by le_topTips1 comment – viewed 1,610 times – ( +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 months ago by rafaelt88Tips1 comment – viewed 1,680 times – ( +5 ) – 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 months ago by Louis GacTutorials0 comments – viewed 1,987 times – ( +4 ) – 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 4 months ago by KonApazHow-tos3 comments – viewed 3,814 times – ( +2 ) – 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 4 months ago by KonApazHow-tos0 comments – viewed 2,449 times – ( +2 ) – version 1.1
CGridview displays existent rows of the table (using DataProvider)

Update CGridview row separately using ajax request

Created 5 months ago by KonApazHow-tos6 comments – viewed 4,366 times – ( +5 ) – 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 5 months ago by KonApazHow-tos0 comments – viewed 2,438 times – ( +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)

CSqlDataProvider in CGridView

Created 6 months ago by KonApazTutorials8 comments – viewed 6,685 times – ( +6 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

CGridView customized CCheckBoxColumn

Created 7 months ago by chandranTips2 comments – viewed 4,738 times – ( +5 ) – version 1.1
Hi friends,

Saving CGridView filter

Created 7 months ago by sefburhanTutorials5 comments – viewed 3,869 times – ( +27 ) – version 1.1
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