How add css class to each input field for search ajax form in cgridview - filterCssClass?
Posted 01 June 2010 - 12:50 AM
how to add class/style to each input fields for search ajax form in cgridview.
i have my own css class for each input type.
the original css, 'filters' not look good in IE6.
i know there is method filterCssClass, but this only effect for tr tag.
Posted 01 June 2010 - 01:23 AM
I just make a new CSS file like css/myproject.css and include it in the layouts/main.php as the last one, and then redefine there what I want to change...
For the filters use the:
.grid-view .filters input
.grid-view .filters select
Posted 01 June 2010 - 02:00 AM
thanks for reply.
but how to assign different size for each input field?
because in IE6 the size of input field is overflow.
i try 'overflow:hidden', but not work too.
i know IE6 is an old, but a lots of people still using it.
other browser is fine.
Posted 01 June 2010 - 02:43 AM
and insert custom HTML code with the class or id you need...
Posted 02 June 2010 - 12:05 AM
'filter'=>CHtml::textField('t_news[title]', '', array('style'=>'width:140px')),
this one solve tidy warning issue with empty option value:
'filter'=>CHtml::DropDownList('t_news[Status]', '', array('00'=>'No','01'=>'Yes'), array('id'=>'t_news_Status_filter', 'empty'=>'Select Status')),
the name field is hard coded, i dont like it either..
Dropdown list filter not working in IE6
Someone said this is a bugs