Wiki

Articles tagged with "cgridview", sorted by date (updated)X
Displaying 21-30 of 39 result(s).

Customize CGridView columns directly in your view

Updated 10 months ago by clapasTips2 comments – viewed 10,140 times – ( +2 / -1 )
You usually take a model instance passed into your view to provide data to a CGridView in this way:

Working with CGridView in Admin Panel

Updated 11 months ago by vibhaJadwaniTutorials11 comments – viewed 31,117 times – ( +30 / -1 )
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

How to filter CGridView with From Date and To Date datepicker

Updated 11 months ago by kiran sharmaTips10 comments – viewed 14,601 times – ( +11 )
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 12 months ago by xrxHow-tos13 comments – viewed 22,944 times – ( +20 )
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 12 months ago by JobloTips7 comments – viewed 22,653 times – ( +13 )
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 12 months ago by JobloTips10 comments – viewed 22,188 times – ( +11 )
My article Display the full record in a CJuiDialog uses ajax to view a record in dialog on clicking the 'view-icon'.

Displaying image in a CGridView column.

Updated about a year ago by sirin kHow-tos5 comments – viewed 24,278 times – ( +12 / -1 )
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Change buttons on our CGridView extending yii

Updated about a year ago by sensorarioTips4 comments – viewed 14,226 times – ( +9 )
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 about a year ago by jayalaHow-tos0 comments – viewed 5,271 times – ( +4 )
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 about a year ago by c@cbaTutorials0 comments – viewed 17,239 times – ( +20 / -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...