Wiki articles tagged with "CGridView"

Showing 1-20 of 65 items.

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

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

How to keep filters simple in CGridView

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

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.

0 0
2 followers
Viewed: 14 631 times
Version: 1.1
Category: How-tos

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

Adding 'disabled' to CCheckBoxColumn and support for yiigridview.js

Created 13 years ago by Xgamer99 Xgamer99, updated 13 years ago by Maurizio Domba Cerin Maurizio Domba Cerin.

I recently had to have a checkbox column in my grid view that supported the 'disabled' attribute. This was easy enough to do by extending the CCheckBoxColumn. However, I also wanted the checkbox to be selected when clicking on the table's row (supported via CGridView's selectableRows option). I discovered I had to tweak yiigridview.js so that it would not select disabled rows when clicking on it o...

1 0
7 followers
Viewed: 23 390 times
Version: 1.1
Category: Tips
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

Saving CGridView filter

Created 11 years ago by sefburhan sefburhan, updated 11 years ago by CeBe CeBe.

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

1 0
31 followers
Viewed: 15 259 times
Version: 1.1
Category: Tutorials

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

Update specific cgridview html row after AJAX request

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

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)

1 0
2 followers
Viewed: 25 914 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

Customize CGridView columns directly in your view

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

You usually take a model instance passed into your view to provide data to a CGridView in this way:

2 1
5 followers
Viewed: 40 956 times
Version: 1.1
Category: Tips

two or more different collected data in one CGridView

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

Assume that you have teachers and students model.

2 1
6 followers
Viewed: 20 739 times
Version: 1.1
Category: How-tos

Using CJuiDialog to edit rows in a CGridView

Created 14 years ago by Russell England Russell England, updated 14 years ago by Russell England Russell England.

I used Zaccarias excellent article as the base http://www.yiiframework.com/wiki/145/cjuidialog-for-create-new-model/

Solution

First follow the wiki above to create all the required code. Then make the following modifications in your...

3 1
11 followers
Viewed: 44 518 times
Version: 1.1
Category: Tips

Adding a link to a CDataColumn

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

Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

2 0
8 followers
Viewed: 28 841 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

Take more control of CGridview and model searching (related model or another controller)

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

Suppose you have an Application in Yii that manages hotels each one has many customers.

2 0
6 followers
Viewed: 45 638 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

View a related field in CGridView

Created 11 years ago by rafaelt88 rafaelt88, updated 10 years ago by rafaelt88 rafaelt88.

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".

2 0
3 followers
Viewed: 20 572 times
Version: 1.1
Category: Tips