Wiki

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

CGridView: Display the full record (actionView) in a CJuiDialog

Created 5 years ago by JobloTips7 comments – viewed 43,517 times – ( +15 / -1 ) – version 1.1
If you show a model (with a lot of attributes) partially in a CGridView, it can be helpful when the user can take a quick look at the full record with all attributes without displaying the view as a page and afterwards returning back to the gridview.

Update/delete model with CJuiDialog (works in CGridView)

Created 6 years ago by ifdatticTutorials6 comments – viewed 67,604 times – ( +15 / -1 ) – version 1.1
This is based on this article.

CGridView: Update/create records in a CJuiDialog

Created 5 years ago by JobloTips12 comments – viewed 48,612 times – ( +14 / -1 ) – 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'.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 13,191 times – ( +13 / -1 ) – 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 29,151 times – ( +12 / -1 ) – 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,825 times – ( +10 / -1 ) – 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 5 years ago by sirin kHow-tos5 comments – viewed 62,741 times – ( +13 / -2 ) – 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

Adding a date range search for CGridView the easy way

Created 4 years ago by mikewalenTips6 comments – viewed 31,369 times – ( +12 / -2 ) – 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.

How to filter CGridView with From Date and To Date datepicker

Created 5 years ago by kiran sharmaTips16 comments – viewed 49,665 times – ( +17 / -5 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

CSqlDataProvider in CGridView

Created 3 years ago by Kostas Apazidis (KonApaz)Tutorials8 comments – viewed 23,583 times – ( +8 / -1 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features