Approved
Last Updated: 13 Aug 2019 08:43 by ADMIN
Created by: CHARBEL KALLASSY
Comments: 0
Category: Date/Time Pickers
Type: Feature Request
4
Date picker when entering the day or day and month to autofill the content with current year or current month and year, same as asp.net ajax datepicker
Approved
Last Updated: 13 May 2019 08:44 by ADMIN
Created by: Charline
Comments: 3
Category: Date/Time Pickers
Type: Feature Request
4

Dear support,

 

I didn't find in your documentation if and how we can use data-* annotations to setup dataInput options of a datepicker.

I would like to do the same thing that the code below does but with MVVM data-* annotation.

            self.date= $('#dateExample').kendoDatePicker({
                format: 'dd.MM.yyyy',
                dateInput: true,
            }).data('kendoDatePicker');
            self.date._dateInput.setOptions({
                format: 'dd.MM.yyyy',
                messages: {
                    'year': 'yyyy',
                    'month': 'mm',
                    'day': 'dd'
                }

I globally use data-bind for html and kendo UI components. 

I just added the data-format in my html like below, and it works.

  <input data-role="datepicker" id="dateExample" data-format="dd.MM.yyyy" data-bind="value: myValue">

I wonder if we can setup format and messages options for the dateinput of the datepicker with MVVM without using jquery (with something like data-dateinput, data-dateinput-format, data-dateinput-messages...).

 

Thanks in advance for your usual support.

Regards,

Charline.