Wiki

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

Using CJuiDialog to edit rows in a CGridView

Created 5 years ago by Russell EnglandTips8 comments – viewed 32,234 times – ( +4 / -1 ) – version 1.1
I have a CGridView with a list of clients/events. For each row (EventClient) I wanted a quick edit dialog.

multiple CActiveDataProviders in one CGridView

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 19,370 times – ( +8 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

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

Created 4 years ago by JobloTips7 comments – viewed 41,406 times – ( +15 ) – 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.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 3 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 22,227 times – ( +5 ) – version 1.1
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

CGridView Date Range Without Cookies or Session (External Filtering)

Created 2 years ago by ezekielnoobHow-tos6 comments – viewed 11,837 times – ( +5 ) – version 1.1
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below:

Change buttons on our CGridView extending yii

Created 4 years ago by sensorarioTips6 comments – viewed 27,735 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 =).

Adding a link to a CDataColumn

Created 3 years ago by le_topTips6 comments – viewed 14,579 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

Adding a date range search for CGridView the easy way

Created 3 years ago by mikewalenTips6 comments – viewed 27,627 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.

Update/delete model with CJuiDialog (works in CGridView)

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

Displaying image in a CGridView column.

Created 4 years ago by sirin kHow-tos5 comments – viewed 59,039 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