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

CGridView: Render customized/complex datacolumns

Created 3 years ago by JobloTips13 comments – viewed 134,086 times – ( +73 ) – version 1.1
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

Searching and Sorting by Count of Related Items in CGridView

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

CGridView: Update/create records in a CJuiDialog

Created 3 years ago by JobloTips12 comments – viewed 43,308 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'.

How to show ajax delete status in CGridView like flash messages

Created 4 years ago by hasanaviHow-tos12 comments – viewed 40,205 times – ( +24 ) – version 1.1
I've seen many tickets regarding how to show friendly delete confirmation using CGridView's CButtonColumn in ajax request. If you are using relational database, after producing CRUD functionality when you try to delete a record in ajax mode which has child record it can't be deleted and you can see the ajax loader forever. By this way you can't show the users if a record has been successfully deleted or if there are some problem in flash style (setFlash() / getFlash())

Special $variables in CGridView and CListView

Created 3 years ago by Steve FriedlTips11 comments – viewed 53,687 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.

Exporting CGridView results to CSV file

Created 3 years ago by RusAlexTutorials9 comments – viewed 37,802 times – ( +6 / -3 ) – version 1.1
A few days ago, i worked for CGridView exporting functional for my client. He asked me to create a simple exporting to a CSV file a CGridView search results.
tags: cgridview, export, csv

Update CGridview row separately using ajax request

Created about a year ago by Kostas Apazidis (KonApaz)How-tos9 comments – viewed 10,089 times – ( +6 ) – version 1.1
There are cases you want to update a record on CGridview directly

Filter / Search with CListView

Created 4 years ago by JohnPollardHow-tos9 comments – viewed 36,976 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.

CSqlDataProvider in CGridView

Created about a year ago by Kostas Apazidis (KonApaz)Tutorials8 comments – viewed 14,968 times – ( +8 ) – version 1.1
In this wiki I will show how could use a CSqlDataProvider in CGridView with specific features

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 3 years ago by yJeroenTutorials8 comments – viewed 50,980 times – ( +20 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.