Wiki

Articles tagged with "cgridview", sorted by date (updated)X
Displaying 1-10 of 65 result(s).

Displaying image in a CGridView column.

Updated 28 days ago by sirin kHow-tos5 comments – viewed 49,908 times – ( +13 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Searching and Sorting by Count of Related Items in CGridView

Updated about a month ago by softarkHow-tos13 comments – viewed 33,601 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

checkBox in CGridview

Updated 3 months ago by n-rOthers0 comments – viewed 3,447 times – 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

Updated 4 months ago by le_topHow-tos0 comments – viewed 3,947 times – ( +2 ) – 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

Updated 4 months ago by le_topHow-tos2 comments – viewed 2,590 times – 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.

Insert a multirow header in CGridView

Updated 6 months ago by PeppeHow-tos2 comments – viewed 10,832 times – ( +6 ) – version 1.1
The CGridView widget is very useful and customizable, but sometimes you need a little more. One limit I found is to have only one row for headers; yes, you can write each column header in more than one row, but just inside the single cell. I was looking instead for the possibility to use more than one row, with different structure one from the others. This way you can write columns grouping headers, and obtain a nicer view.

multiple CActiveDataProviders in one CGridView

Updated 6 months ago by NashiHow-tos6 comments – viewed 14,058 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Display Status image on CGridView column

Updated 8 months ago by Ankit ModiTutorials1 comment – viewed 8,774 times – ( +1 / -1 ) – version all
How to display status image on admin gridview.

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

Updated 8 months ago by le_topTips1 comment – viewed 2,681 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.

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

Updated 8 months ago by Louis GacTutorials1 comment – viewed 4,506 times – ( +5 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew