Difference between #3 and #4 of
Using CJuiDatePicker for CGridView filter

Changes

Title unchanged

Using CJuiDatePicker for CGridView filter

Category unchanged

How-tos

Yii version unchanged

Tags unchanged

CJuiDatePicker, CGridView, filter

Content changed

[...]
));

// (#5)
Yii::app()->clientScript->registerScript('re-install-date-picker', "
function reinstallDatePicker(id, data) {
$('#datepicker_for_due_date').datepicker(        //use the same parameters that you had set in your widget else the datepicker will be refreshed by default
 
$('#datepicker_for_due_date').datepicker(jQuery.extend({showMonthAfterYear:false},jQuery.datepicker.regional['ja'],{'dateFormat':'yy/mm/dd'})
);
}
");
```

### Note
[...]
19 0
31 followers
Viewed: 64 455 times
Version: 1.1
Category: How-tos
Written by: softark
Last updated by: Kostas Apazidis (KonApaz)
Created on: Mar 26, 2012
Last updated: 10 years ago
Update Article

Revisions

View all history