The below text is from documentation about the dataInit
Note: Some plugins require the position of the element in the DOM and since this event is raised before inserting the element into the DOM you can use a setTimeout function to accomplish the desired action. This is especially valid for jQuery UI datepicker
In order to work the datepicer (timepicker, colorpicker) you should do