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

Having an issue with a datepicker tied to a radio button

1 Answer 237 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
DaySmart
Top achievements
Rank 1
DaySmart asked on 13 Aug 2012, 09:44 PM
Hello,

I am having a problem getting the date picker to work correctly when inside of a label element. The label element is tied to a specific radio button. The idea is that if the user switches focus to the date picker, we want that radio option to be automatically selected. Because it is doing this, the date picker quickly opens and then closes when clicked. I assume this is because the focus is being switched to the radio button, but I was able to do the same type of thing with a jQuery datepicker so I'm not sure if something else is going on.

Here is an example of the problem. If you click to open a date picker, it closes right away. If you change the label name tag from daterange to anything else, the problem goes away.

Any suggestions or ideas? Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 16 Aug 2012, 03:14 PM
Hi Lauren,

 We are not sure what the desired behavior is. Could you please implement it using regular <input /> elements? You can modify the existing jsFiddle. Then we could assist you with converting them to kendo datepicker.

Regards,
Atanas Korchev
the Telerik team
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
DaySmart
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or