Datepicker In Cdatacolumn Yii

i want to display datepicker in cdatacolumn yii

i tried using





$this->widget('zii.widgets.grid.CGridView', array(

                    'id'=>'order-detail-grid',

                     'selectableRows'=>10,

                    'dataProvider'=>$data,//$model->search(),

                    //'filter'=>$model,

                    'cssFile' => Yii::app()->request->baseUrl.'themes/aura/css/gridview.css',

                    'columns'=>array(

                            array('class'=>'CCheckBoxColumn','value'=>'$data->id'),

                            //'id',

                            //'order_id',

                            'order_no',

                            'item_id',

                            'item_qty',

                            'item_price',

                            'barcode_no',

                            array(

                                   'name'=>$model->getAttributeLabel('assign'),//'enrollment_no',

                                   'type'=>'raw',

                                   'value'=>'$data->UserDropdown',

                               ),

                            array(

                                   'name'=>$model->getAttributeLabel('deadline'),//'enrollment_no',

                                   'type'=>'raw',

                                   //'value'=>'$data->deadlineTextBox',

                                    'value'=>$this->widget('zii.widgets.jui.CJuiDatePicker', array(

                                                'model'=>$model, 

                                                'attribute'=>'deadline', 

                                                'language' => 'ja',

                                                // 'i18nScriptFile' => 'jquery.ui.datepicker-ja.js', (#2)

                                                'htmlOptions' => array(

                                                    'id' => 'datepicker_for_due_date',

                                                    'size' => '10',

                                                ),))

                               ),

                            array(

                                   'name'=>$model->getAttributeLabel('remarks'),//'enrollment_no',

                                   'type'=>'raw',

                                   'value'=>'$data->remarksTextBox',

                               ),

                            array(

                                   'name'=>$model->getAttributeLabel('qty'),//'enrollment_no',

                                   'type'=>'raw',

                                   'value'=>'$data->qtyTextBox',

                               ),

                            /*

                            'status',

                            'chalan_status',

                            'inserted_by',

                            'updated_by',

                            'deleted_by',

                            */

                          /*  array(

                                    'class'=>'CButtonColumn',

                            ),*/

                    ),

            )); ?>




bu didn’t work…can anyone give me solution

code looks fine. Can you open Developer Tools of your browser and look at the console, please. Do you have any errors?

try this:




		array('name' => 'CREATEDATE', //your table field

		      'header' => 'Create Date', // your wanted header (Dead Line) or get it from labels

		      'filter'=>$this->widget('zii.widgets.jui.CJuiDatepicker', array(

		                'model'=>$model,

		                'attribute'=>'CREATEDATE', //again your db field

		                'htmlOptions' => array(

		                    'id' => 'Create_Date',

				    'readonly' => 'readonly',

			        ), 

	                        'options' => array(

  	                        'dateFormat' => 'yy-mm-dd',

                      )

                   ), true)

		),