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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateFormat in DatePicker prevents loading complete Collection

Thread ID:

Created:

Updated:

Platform:

Replies:

119860 Aug 7,2015 02:17 PM UTC Aug 9,2015 05:17 AM UTC LightSwitch HTML 1
loading
Tags: DateTimePicker
Matthias Damerow
Asked On August 7, 2015 02:17 PM UTC

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

Sasikala Nagarajan [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;