This is a migrated thread and some comments may be shown as answers.

How to add functionality

1 Answer 6 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 05 Dec 2018, 10:42 PM
I need to add functionality to a raddatepicker such that typing "t" will change to today's date, "t-x" will subtract x days from today, and finally "t+x" will add x days to today.  I used OnValueChanging and have it working, however after everything has run through it seems to override the "t-x" and "t+x" to be "m/x/yyyy" where m is the current month, x is the number I typed, and yyyy is the current year.  Is there a better way to do this or a way of stopping the override.

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Dec 2018, 01:49 PM
Hello William,

This can be achieved using some custom keyboard handling similar to this sample:
https://www.telerik.com/support/code-library/advanced-keyboard-functionality-for-raddatepicker

I hope this will give you some ideas. However, have in mind that this kind of custom implementation is beyond our support boundaries.

Regards,
Eyup
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
DatePicker
Asked by
William
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or