Click here for EduSec Demo EduSec Screenshots

Datepicker in filter Search Box

On 2013-06-10 - By Ravi Thanki

yii framework provider filter seach facility in admin view. if we want add datepicker in filter box to search date in admin view.

Following example demostrate how to used datepicker in filter search box.

‘name’ => ‘date’,
‘value’=>’($data->date == 0000-00-00) ? “Not Set” : date_format(new DateTime($data->date), “d-m-Y”)’,
‘filter’ => $this->widget(‘zii.widgets.jui.CJuiDatePicker’, array(
‘model’ => $model,
‘attribute’ => ‘date’,
‘showAnim’ =>’slide’,


‘afterAjaxUpdate’ => ‘reInstallDatepicker’,

function for reinstall datepicker when second time searching

function reInstallDatepicker(id, data){