fix for displaying datepicker when datasources is loaded with data