Wiki

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

Update/delete model with CJuiDialog (works in CGridView)

Created 5 years ago by ifdatticTutorials6 comments – viewed 66,889 times – ( +15 ) – version 1.1
This is based on this article.

CGridView: Update/create records in a CJuiDialog

Created 5 years ago by JobloTips12 comments – viewed 47,931 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 5 years ago by Steve FriedlTips11 comments – viewed 62,928 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 4 years ago by le_topHow-tos1 comment – viewed 12,737 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.

Change buttons on our CGridView extending yii

Created 5 years ago by sensorarioTips6 comments – viewed 28,785 times – ( +12 ) – 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 6 years ago by MukkeTips1 comment – viewed 28,281 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 4 years ago by sirin kHow-tos5 comments – viewed 61,796 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 3 years ago by Kostas Apazidis (KonApaz)Tutorials8 comments – viewed 22,487 times – ( +8 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

Update CGridview row separately using ajax request

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos10 comments – viewed 15,194 times – ( +8 ) – version 1.1
There are cases you want to update a record on CGridview directly

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

Created 3 years ago by Maug LeeHow-tos2 comments – viewed 37,482 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.