0

I’m all good with the DatePicker widget on a normally rendered view, and I\’m good with injecting sections of views in to an existing page with renderAjax in a controller.  I\’m having trouble though with having a DatePicker widget as part of a renderAjax view.

The view will display and show the input box but when you click on box to display the calendar, nothing happens.  Things I have found and tried that seem to work for other people include the following.

Setting this in the widget…

\’hashVarLoadPosition\’ => View::POS_READY,

Giving the widget a unique \’id\’.

setting layout to false in the controller action

$this->layout = false;

and using renderAjax for the view.

return $this->renderAjax(\’glacierdayhikedetails\’,[

\’myDayHikeDetails\’ => $myDayHikeDetails,

]);

So far no joy with the DatePicker widget…

It looks a bit like event listeners are missing from the renderAjax versions that are not missing from the regular render versions.  I\’m guessing it\’s related perhaps.

Is there any documentation I\’m missing that is specific to this problem, or do you have any thoughts on this?  It would be great if I could get this to work.

Thanks!

Kyle

DatePicker widget on a renderAjax view
kylesands Asked question September 25, 2023