Wiki

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

How to avoid rendering entire page on AJAX call for CGridView and CListView

Updated 3 months ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 22,274 times – ( +5 ) – version 1.1
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

Multi Data Provider

Updated 7 months ago by Sharon LavieTips0 comments – viewed 7,946 times – ( +1 ) – version 1.1
Lately, i needed to deal with the following scenario: read from two databases (db1,db2), and write to a third database (db3).

View a related field in CGridView

Updated about a year ago by rafaelt88Tips1 comment – viewed 9,305 times – ( +6 ) – 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".

CGridView Date Range Without Cookies or Session (External Filtering)

Updated about a year ago by ezekielnoobHow-tos6 comments – viewed 11,866 times – ( +5 ) – version 1.1
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:

Displaying image in a CGridView column.

Updated about a year ago by sirin kHow-tos5 comments – viewed 59,158 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 year ago by softarkHow-tos13 comments – viewed 41,542 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

checkBox in CGridview

Updated about a year ago by n-rOthers0 comments – viewed 11,988 times – ( +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

Updated about a year ago by le_topHow-tos0 comments – viewed 7,545 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 about a year ago by le_topHow-tos3 comments – viewed 4,956 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 about a year ago by PeppeHow-tos2 comments – viewed 14,505 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.