Wiki

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

How to filter CGridView with From Date and To Date datepicker

Updated 4 years ago by kiran sharmaTips16 comments – viewed 45,386 times – ( +17 / -4 ) – version 1.1
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Updated 4 years ago by xrxHow-tos17 comments – viewed 39,034 times – ( +25 ) – 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.

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

Updated 4 years ago by JobloTips7 comments – viewed 41,625 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.

CGridView: Update/create records in a CJuiDialog

Updated 4 years ago by JobloTips12 comments – viewed 46,331 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'.

Change buttons on our CGridView extending yii

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

CGridView keep focus on the control after filtering

Updated 4 years ago by jayalaHow-tos4 comments – viewed 9,993 times – ( +6 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Updated 4 years ago by c@cbaTutorials3 comments – viewed 58,105 times – ( +28 / -1 ) – version 1.1
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

Exporting CGridView results to CSV file

Updated 4 years ago by RusAlexTutorials9 comments – viewed 43,390 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

Special $variables in CGridView and CListView

Updated 4 years ago by Steve FriedlTips11 comments – viewed 60,070 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.

Update/delete model with CJuiDialog (works in CGridView)

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