Yii 1.1: sydatecolumn

filter date column for gridview in Yii framework
16 followers

image #

Filter date column widgets for gridview in Yii framework

Requirements

(e.g. Yii 1.6 or above)

Usage

go http://blog.yiibook.com/?p=452

'columns'=>array(
    ...
 
            'title',
            array(
                'header'=>'creation_time',
                'name'=>'creation_time',
                'class'=>'SYDateColumn'
            ),
            array(
                'header'=>'update_time',
                'name'=>'update_time',
                'filter'=>'single',
                'class'=>'SYDateColumn'
            ),
            array(
                'class'=>'CButtonColumn',
            ),
        ),

Resources

http://blog.yiibook.com/?p=452

Total 3 comments

#7232 report it
denisa84 at 2012/03/06 04:19am
Choose too quickly

When I am trying to filter after From and To fields, selecting date To field quickly(the ajax call isn't finished yet) I get an error "f is not a function" in console and the date can't be chosen. If I try again it will work...Do you have any idea about how to fix this? Something.to wait until the ajax call is finished..I don't have any idea. Thank you,

#6515 report it
Kefah at 2012/01/16 05:43am
A nice extension

I was able to get it running.

Thanks a bunch! :)

For those who were not able to get the code :

mv SYDateColumn.tgz SYDateColumn.tgz.gz
gunzip SYDateColumn.tgz.gz
tar -vxzf SYDateColumn.tgz

Reading the blog is also necessary.

#5659 report it
jpablo at 2011/10/29 02:42pm
ZIP is damaged

The ZIP file is damaged, please upload it again.

Leave a comment

Please to leave your comment.

Create extension