Revision #9 has been created by mikewalen on Nov 21, 2013, 12:42:17 AM with the memo:
Acknowledge tip from yiimike
« previous (#8)
Changes
Title
unchanged
Adding a date range search for CGridView the easy way
Category
unchanged
Tips
Yii version
unchanged
Tags
unchanged
search, date, date range, date range filter, CGridView
Content
changed
[...]
));
}
?>
```
**PLEASE NOTE:** If you currently have a column in your grid view that is displaying the same date attribute you are range-searching on, make sure you set the 'filter' setting to false.
E.g.(thank you to yiimike for this tip!) I.e.
[...]
'columns'=>array(
'id',
//...
array(
'name'=>'date_created',[...]
'filter'=>false, // Set the filter to false when date range searching
),
//...
),
));
?>
```[...]