Wiki

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

Yii CGridView add custom button

Created 4 years ago by Arockia Johnson SRHow-tos1 comment – viewed 34,351 times – ( +6 / -1 ) – version 1.1
Hi buddies !, This tutorial shows about how to add a custom button with your own icon for your CGridView of Yii framework

BootProgressColumn - Progress Bar Inside GridView Column compatible with 'bootstrap' extension

Created 5 years ago by LuizTips1 comment – viewed 17,157 times – ( +7 / -1 ) – version 1.1
A little hint of how to create a progress bar inside the column of the grid, using the 'bootstrap' extension.

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

Created 6 years ago by MukkeTips1 comment – viewed 29,472 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.

Limit a CGridView field to some preset length.

Created 4 years ago by le_topHow-tos1 comment – viewed 13,795 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.

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created 3 years ago by Louis GacTutorials1 comment – viewed 12,588 times – ( +6 / -1 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

View a related field in CGridView

Created 3 years ago by rafaelt88Tips1 comment – viewed 11,798 times – ( +6 / -1 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

Search scenario (CGridView, etc.): avoid default values from database as search condition.

Created 3 years ago by le_topTips1 comment – viewed 6,281 times – ( +1 / -1 ) – version 1.1
Yii has a neat "trick" that will assign default values to new CActiveRecords. When performing a search() though, this is pretty annoying as they automatically apply as filter values.

Search a file size range in CGridView

Created 4 years ago by CrazyCatTips0 comments – viewed 7,288 times – ( +2 / -1 )
Working on a report system of files transfert, I had to let the users simply find files by size. I didn't want to have two fields, I prefer a simple text input, with "human syntax".

Clear CGridView Filters, Sort & Pager

Created 3 years ago by le_topHow-tos0 comments – viewed 10,043 times – ( +2 / -1 ) – version 1.1
Clearing CGridView filters and sort orders from the web pages, is usefull for the end user. Yii does not seem to propose a standard method. Furthermore, this is especially usefull when filters are "remembered" in the user's session.

Display image on CGridView column and open a fancy-box

Created 4 years ago by Ankit ModiTutorials0 comments – viewed 13,095 times – ( +1 / -2 )
1) Add a fancy-box extension on admin page