Wiki

Articles tagged with "cgridview", sorted by ratingX
Displaying 21-30 of 65 result(s).

Update/delete model with CJuiDialog (works in CGridView)

Created 3 years ago by ifdatticTutorials6 comments – viewed 59,362 times – ( +15 ) – version 1.1
This is based on this article.

CGridView: Update/create records in a CJuiDialog

Created 3 years ago by JobloTips12 comments – viewed 41,667 times – ( +14 ) – version 1.1
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Special $variables in CGridView and CListView

Created 3 years ago by Steve FriedlTips11 comments – viewed 50,476 times – ( +27 / -2 ) – version 1.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.

Limit a CGridView field to some preset length.

Created 2 years ago by le_topHow-tos1 comment – viewed 9,694 times – ( +13 ) – version 1.1
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.

Adding a date range search for CGridView the easy way

Created 2 years ago by mikewalenTips5 comments – viewed 20,890 times – ( +12 ) – version 1.1
After a lot of research, everything I found on adding date range searching to a CGridView advanced search form seemed to involve adding two new public variables (e.g. $date_from, $date_to), 'safe' rules for the new variables, and a rather chunky if/elseif/else check in the search() method. This probably isn't a hassle for most, but because many of the tables in my database contain two or three and sometimes four date columns (e.g. date_created, date_modified, date_deleted etc.), it meant I was having to add up to eight public variables, the corresponding safe rules, and modifying the search() criteria for each date attribute. So, I set about creating a better way and I thought I'd share my work with the community.

Change buttons on our CGridView extending yii

Created 3 years ago by sensorarioTips5 comments – viewed 25,331 times – ( +11 ) – version 1.1
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

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

Created 4 years ago by MukkeTips1 comment – viewed 24,565 times – ( +10 ) – version 1.1
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.

Displaying image in a CGridView column.

Created 3 years ago by sirin kHow-tos5 comments – viewed 51,316 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

CSqlDataProvider in CGridView

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials8 comments – viewed 12,555 times – ( +8 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

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

Created about a year ago by Maug LeeHow-tos2 comments – viewed 25,396 times – ( +8 ) – version 1.1
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.