I can't understand one thing..
If i set in mysql Default Value for column - this automaticaly set's on filter in admin view.
Is there a way to keep default value, and in CGridView admin filter by default = "no filter" on this column ?
Page 1 of 1
DB default value in FILTER. What for?
#2
Posted 23 March 2010 - 11:47 AM
vuliad, on 20 March 2010 - 11:43 AM, said:
I can't understand one thing..
If i set in mysql Default Value for column - this automaticaly set's on filter in admin view.
Is there a way to keep default value, and in CGridView admin filter by default = "no filter" on this column ?
If i set in mysql Default Value for column - this automaticaly set's on filter in admin view.
Is there a way to keep default value, and in CGridView admin filter by default = "no filter" on this column ?
I confirm this -I have the same problem. Filter boxes take default values from model columns and can not be set to 'empty' or cleared.
OR
#3
Posted 24 March 2010 - 09:34 AM
Same problem here. Does anyone know how to get around this?
José
#4
Posted 25 March 2010 - 09:07 PM
In my actionAdmin() function I just set the value in the model to NULL.
$model=new Post('search');
$model->views = NULL;
#5
Posted 26 March 2010 - 05:18 AM
Have the same problem.
Setting attributes to NULL (as described above) works but I think all filters should be set to NULL by deafault.
new issue was already added - Issue 1050: DataGrid filter default values are not NULLs and can not be cleared
Setting attributes to NULL (as described above) works but I think all filters should be set to NULL by deafault.
new issue was already added - Issue 1050: DataGrid filter default values are not NULLs and can not be cleared
Share this topic:
Page 1 of 1

Help














