Page 1 of 1

Date field with Kendo template incorrect value through FD field method

Posted: 06 Jul 2017
by chris.cook
Using a Kendo UI based date field gives me incorrect and illogical results when calling it using

Code: Select all

fd.field('CompletionDate').value();
this syntax.

When the field is initially empty, it returns null. When calling it again inside the

Code: Select all

fd.field('CompletionDate').change()
function, once it has been chosen using the calendar UI, it will still display null. The following time, regardless of whether I change the date or remove it, the result of

Code: Select all

fd.field('CompletionDate').value()
is the initial date I chose.

The field value therefore seems offset by 1 change event. It could be caused by the .change() function being called before kendo UI has a chance to update wherever .value() is looking. I can see that it is referencing input.plumsail-fd-kendodatepicker which might not be being updated until after

Code: Select all

fd.field('CompletionDate').change()
is called.

This is a big issue for the form I am creating.

Re: Date field with Kendo template incorrect value through FD field method

Posted: 06 Jul 2017
by Nikita Kurguzov
Thank you for bringing that up, Chris. We have tested this issue and can confirm that this in fact happens.
We'll look further into it and try to fix this issue ASAP.

Re: Date field with Kendo template incorrect value through FD field method

Posted: 07 Jul 2017
by Nikita Kurguzov
Chris, our developers have looked into this and applied a fix. It should work as intended now. Please try it and tell us of the result.