Wiki articles in category How-tos tagged with "CGridView"

Showing 21-29 of 29 items.

Creating a jQueryUI Sortable CGridView

Created 14 years ago by blindMoe blindMoe, updated 13 years ago by rAWTAZ rAWTAZ.

I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

36 0
54 followers
Viewed: 54 909 times
Version: 1.1
Category: How-tos

Using filters with CGridView and CArrayDataProvider

Created 14 years ago by marcovtwout marcovtwout, updated 12 years ago by yugene yugene.

Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

19 0
29 followers
Viewed: 97 391 times
Version: 1.1
Category: How-tos

Filter / Search with CListView

Created 14 years ago by JohnPollard JohnPollard, updated 12 years ago by JohnPollard JohnPollard.

This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

22 0
26 followers
Viewed: 57 892 times
Version: 1.1
Category: How-tos

How to show ajax delete status in CGridView like flash messages

Created 14 years ago by hasanavi hasanavi, updated 13 years ago by adlersd adlersd.

I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully dele...

17 0
30 followers
Viewed: 59 245 times
Version: 1.1
Category: How-tos

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 14 years ago by xrx xrx, updated 13 years ago by xrx xrx.

Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

23 0
29 followers
Viewed: 54 631 times
Version: 1.1
Category: How-tos

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

Keeping a running total in a CGridView

Created 14 years ago by Steve Friedl Steve Friedl, updated 14 years ago by tydeas_dr tydeas_dr.

This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!

22 0
19 followers
Viewed: 82 449 times
Version: 1.1
Category: How-tos
Tags: CGridView

Using standard filters in CGridView custom fields

Created 15 years ago by GOsha GOsha, updated 15 years ago by jwerner jwerner.

In this article I'll try to explain how to use standard quick search fields in CGridView with customized columns.
For example:
We have a record in a database with field switch having 0 or 1 values. After that we want a user to see on or off instead 1 or 0.
So we do the usual thing:

<?php $this->widget('zii.widgets.grid.CGridView', array(
//.....
array(
    'name'=>'...
14 0
16 followers
Viewed: 76 739 times
Version: 1.1
Category: How-tos

Using CButtonColumn to customize buttons in CGridView

Created 15 years ago by Trejder Trejder, updated 13 years ago by Gismo Gismo.

The easiest way to customize look and behaviour of them is to use series of CButtonColumn properties, like: updateButtonImageUrl (path to image for update button), updateButtonLabel (label for the update button; not HTML-encoded), updateButtonOptions (HTML options for this button, used in the way as many htmlOptions property for many widgets) and updateButtonUrl (a PHP expresion th...

75 0
59 followers
Viewed: 351 912 times
Version: 1.1
Category: How-tos