¶
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
- [Project page] [http://blog.yiibook.com/?p=452](http://blog.yiibook.com/?p=452 "http://blog.yiibook.com/?p=452")
- [Try out a demo][http://svnpub.yiibook.com] demo/demo
ZIP is damaged
The ZIP file is damaged, please upload it again.
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.
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,
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.