Wiki

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

Filter / Search with CListView

Created 3 years ago by JohnPollardHow-tos9 comments – viewed 36,248 times – ( +29 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

Searching and Sorting by Count of Related Items in CGridView

Created 3 years ago by softarkHow-tos13 comments – viewed 36,041 times – ( +31 ) – version 1.1
Let's say we have two models and relation between them:

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 4 years ago by xrxHow-tos17 comments – viewed 35,886 times – ( +24 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Creating a jQueryUI Sortable CGridView

Created 3 years ago by blindMoeHow-tos22 comments – viewed 35,050 times – ( +47 / -1 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

Using CJuiDialog to edit rows in a CGridView

Created 4 years ago by Russell EnglandTips8 comments – viewed 29,834 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.

Keeping a running total in a CGridView

Created 4 years ago by Steve FriedlHow-tos4 comments – viewed 27,000 times – ( +24 ) – version 1.1
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

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

Created 2 years ago by Maug LeeHow-tos2 comments – viewed 26,938 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.

Change buttons on our CGridView extending yii

Created 3 years ago by sensorarioTips5 comments – viewed 25,833 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 =).

Customize CGridView columns directly in your view

Created 2 years ago by clapasTips4 comments – viewed 25,205 times – ( +3 / -2 ) – version 1.1
You usually take a model instance passed into your view to provide data to a CGridView in this way:

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

Created 4 years ago by MukkeTips1 comment – viewed 25,068 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.