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

DatePicker - inline or attached to a custom control

1 Answer 34 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
JamesD
Top achievements
Rank 1
JamesD asked on 07 Feb 2014, 12:09 PM
We have a need of user date input into custom fields in 2 scenarios:
1) have datepicker inlined to the page (not as popup tied to a input control).
2) have it pop up next to a custom control, opened by a click on a separate button (so that it doesn't redraw/redraw the custom control).
After pick the date is actually populated/calculated to multiple controls on the page.

I tried to attach it to a hidden input (and handle all the data in eventhandlers) but in this case the picker widget is located at top-left corner of the window.

Are these scenarios possible?

 Raido

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 11 Feb 2014, 08:08 AM
Hello Raido,

In general, the DatePicker widget is not designed to function when the input element is hidden. One possible way to accomplish your goal is to change the anchor, which popup widget uses to position the calendar. Here is a simple jsBin demo, which shows how to achieve this.

Regards,
Georgi Krustev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Date/Time Pickers
Asked by
JamesD
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or