Wiki

Articles tagged with "cgridview"X
Displaying 41-50 of 56 result(s).

CGridView: Render customized/complex datacolumns

Created 2 years ago by JobloTips13 comments – viewed 100,010 times – ( +69 ) – 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

CGridView: Update/create records in a CJuiDialog

Created 2 years ago by JobloTips11 comments – viewed 32,603 times – ( +13 ) – 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'.

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

Created 2 years ago by JobloTips7 comments – viewed 31,290 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.

Special $variables in CGridView and CListView

Created 2 years ago by Steve FriedlTips10 comments – viewed 37,306 times – ( +23 / -1 ) – 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.

Creating a jQueryUI Sortable CGridView

Created 2 years ago by blindMoeHow-tos22 comments – viewed 26,454 times – ( +41 / -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 filters with CGridView and CArrayDataProvider

Created 2 years ago by marcovtwoutHow-tos30 comments – viewed 40,302 times – ( +20 ) – version 1.1
Using filters on CGridView with CActiveDataProvider is easy, but with CArrayDataProvider it is a bit tricky.

Filter / Search with CListView

Created 2 years ago by JohnPollardHow-tos7 comments – viewed 27,133 times – ( +24 ) – 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.

Update/delete model with CJuiDialog (works in CGridView)

Created 2 years ago by ifdatticTutorials6 comments – viewed 49,077 times – ( +15 ) – version 1.1
This is based on this article.

How to show ajax delete status in CGridView like flash messages

Created 2 years ago by hasanaviHow-tos12 comments – viewed 29,362 times – ( +20 ) – 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())

Using CJuiDialog to edit rows in a CGridView

Created 2 years ago by Russell EnglandTips8 comments – viewed 25,199 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.