Hey!
I have included the DatePicker in a standard lightswitch table. Without the DateFormat parameter the date won`t show correctly, as the date is in a german format.
This is the code for the DatePicker:
myapp.KinderEingabe.erfasst_render = function (element, contentItem) {
var input = $('<input />');
input.attr('data-role', 'none');
input.appendTo($(element));
input.ejDatePicker({
width: "100%",
dateFormat: "dd.MM.yyyy",
change: function (args) { contentItem.value = args.value; }
});
contentItem.dataBind('value', function (value) {
input.ejDatePicker({ value: value });
if (value == undefined)
input.ejDatePicker({ watermarkText: "Datum auswählen" });
});
};
The error (see attachments) with the DateFormat:
Screenshot "Correct_Data":
This table is loaded without the DateFormat parameter.
Screenshot "Error_Data":
Loaded with DateFormat parameter, the collection is undefined.
Do you have any idea how this is possible or how the DatePicker interacts with or changes the behavior of the collection?
Thanks in advance!
Attachment:
Example_Screenshots_d43430b9.rar