Wiki

Articles tagged with "cgridview", sorted by date (updated)X
Displaying 31-38 of 38 result(s).

Searching and sorting by related model in CGridView

Updated about a year ago by redguyTutorials49 comments – viewed 58,687 times – ( +76 )
Lets say we have two models and relation between them:

Special $variables in CGridView and CListView

Updated about a year ago by Steve FriedlTips8 comments – viewed 21,717 times – ( +18 / -1 )
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

Update/delete model with CJuiDialog (works in CGridView)

Updated about a year ago by ifdatticTutorials6 comments – viewed 31,066 times – ( +14 )
This is based on this article.

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

Updated about a year ago by jwernerTips1 comment – viewed 14,980 times – ( +10 )
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.

Using CJuiDialog to edit rows in a CGridView

Updated about a year ago by Russell EnglandTips7 comments – viewed 18,638 times – ( +2 / -1 )
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

Keeping a running total in a CGridView

Updated 2 years ago by tydeas_drHow-tos3 comments – viewed 15,204 times – ( +21 )
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

CGridView and AjaxForm Connect

Updated 2 years ago by PinkBrainPlanHow-tos2 comments – viewed 13,919 times – ( +1 )
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

Using standard filters in CGridView custom fields

Updated 2 years ago by jwernerHow-tos4 comments – viewed 34,006 times – ( +15 )
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: