protected function registerCalendarClientScriptPre() { if ($this->getShowCalendar()) { $cs = $this->getPage()->getClientScript(); $cs->registerPradoScript("datepicker"); } }