Wiki articles tagged with "CGridView"

Showing 1-20 of 65 items.

CGridView: Adding behaviors from configuration, and template items from behaviors to CGridView

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top.

Changing the way a CGridView is rendered from the configuration file, or through behaviors specified at the moment it is used, is handy to extend a CGridView without creating tons of different classes for it. I am surprised that this is not in the default implementation, so I made my default CGridView implementation.

3 0
3 followers
Viewed: 16 797 times
Version: 1.1
Category: Tips

Search a file size range in CGridView

Created 12 years ago by CrazyCat CrazyCat, updated 12 years ago by CrazyCat CrazyCat.
  1. Create an Active Record Behavior that builds the criteria for the search() method and attach it to your model
  2. Modify the search() method of the model to merge the behavior's criteria in with the rest of the searchable attributes
2 0
2 followers
Viewed: 13 269 times
Version: Unknown (update)
Category: Tips

Display image on CGridView column and open a fancy-box

Created 12 years ago by Ankit Modi Ankit Modi, updated 12 years ago by Ankit Modi Ankit Modi.

1) Add a fancy-box extension on admin page

0 0
2 followers
Viewed: 19 376 times
Version: Unknown (update)
Category: Tutorials
1 0
6 followers
Viewed: 67 075 times
Version: 1.1
Category: Tips

Multi Data Provider

Created 12 years ago by Sharon Lavie Sharon Lavie, updated 10 years ago by Sharon Lavie Sharon Lavie.

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: 20 560 times
Version: 1.1
Category: Tips

Advanced CGridview issues - custom button using php and html

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

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: 15 541 times
Version: 1.1
Category: How-tos

Insert a model record using CGridview

Created 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz), updated 11 years ago by Kostas Apazidis (KonApaz) Kostas Apazidis (KonApaz).

CGridview displays existent rows of the table (using DataProvider)

2 0
1 follower
Viewed: 19 673 times
Version: 1.1
Category: How-tos

Clear CGridView Filters, Sort & Pager

Created 11 years ago by le_top le_top, updated 11 years ago by le_top le_top.

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: 21 370 times
Version: 1.1
Category: How-tos

Search method of a model for filters when using dates - unixtimestamp in database

Created 14 years ago by Mukke Mukke, updated 14 years ago by jwerner jwerner.

I ran into a problem and on irc we worked it out. Since there is a lack on information on filters in genral i thought i'd start sharing all my findings, might be usefull for other people.

10 0
11 followers
Viewed: 39 867 times
Version: 1.1
Category: Tips

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 13 years ago by Luiz Luiz, updated 13 years ago by robregonm robregonm.

A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

5 0
7 followers
Viewed: 26 851 times
Version: 1.1
Category: Tips

Limit a CGridView field to some preset length.

Created 12 years ago by le_top le_top, updated 12 years ago by le_top le_top.

Sometimes text inside a gridview column is just too long. That's why I figured out a way to make the column smaller while still providing the information.

9 0
9 followers
Viewed: 24 784 times
Version: 1.1
Category: How-tos

How to Display tooltp(qtip) on CGridview dynamic

Created 12 years ago by Ankit Modi Ankit Modi, updated 12 years ago by softark softark.

Hi Friends,

0 0
4 followers
Viewed: 18 640 times
Version: Unknown (update)
Category: Tips

Yii CGridView add custom button

Created 12 years ago by Arockia Johnson SR Arockia Johnson SR, updated 11 years ago by CeBe CeBe.

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

3 0
7 followers
Viewed: 52 074 times
Version: 1.1
Category: How-tos

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

Created 11 years ago by le_top le_top, updated 11 years ago by le_top le_top.

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
2 followers
Viewed: 12 286 times
Version: 1.1
Category: Tips

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

Created 11 years ago by Louis Gac Louis Gac, updated 11 years ago by Louis Gac Louis Gac.

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

3 0
4 followers
Viewed: 25 527 times
Version: 1.1
Category: Tutorials

checkBox in CGridview

Created 11 years ago by n-r n-r, updated 11 years ago by n-r n-r.

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

2 0
3 followers
Viewed: 32 512 times
Version: 1.1
Category: Others

Display Status image on CGridView column

Created 12 years ago by Ankit Modi Ankit Modi, updated 6 years ago by samdark samdark.

How to display status image on admin gridview.

0 0
5 followers
Viewed: 23 719 times
Version: 1.1
Category: Tutorials

CGridView and AjaxForm Connect

Created 14 years ago by PinkBrainPlan PinkBrainPlan, updated 14 years ago by PinkBrainPlan PinkBrainPlan.

<?php $this->widget('zii.widgets.grid.CGridView', array(

'dataProvider' => $dataprovider,
'id'=>'recipient_table',
    'selectionChanged'=>'updateEditForm',
'columns' => array(
	'rec_id',
            'org.nachname',
            'org.vorname',
            'org_id',
            array(
                'class'=>'CButtonColumn',
                'template'=>'{...
1 0
10 followers
Viewed: 29 658 times
Version: 1.1
Category: How-tos

Create custom button button with AJAX function in CGridView

Created 13 years ago by nkd nkd, updated 13 years ago by nkd nkd.

This will call the controller function using AJAX instead of redirecting the user to the url using GET parameters.

5 0
15 followers
Viewed: 69 723 times
Version: 1.1
Category: How-tos

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created 12 years ago by Maug Lee Maug Lee, updated 11 years ago by yugene yugene.

Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Implementation

<?php
$this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'user-grid',
	'dat...
7 0
4 followers
Viewed: 57 167 times
Version: 1.1
Category: How-tos