We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

DateFormat in DatePicker prevents loading complete Collection

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

1 Reply

SN Sasikala Nagarajan Syncfusion Team August 9, 2015 05:17 AM UTC

Hi Matthias,
Thanks for using Syncfusion products,
We have analyzed your query but we are unable to reproduce the reported issue in our side. We have prepared the simple sample based on your requirement. Please get the sample from below location
Sample
In this sample we have created screen “passenger” and list the data in table format. Also We have set the date format(as you mentioned in code snippet) to DatePicker . But We are unable to reproduce the issue.
Please check with the given sample. If we misunderstood your query and still you are facing the problem, please provide more information about your issue and system localization/culture, DatePicker culture. If possible please reproduce the issue in provided sample and revert us. This will help us serve you better.
Regards,
Sasikala Nagarajan

Loader.
Live Chat Icon For mobile
Up arrow icon