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

Change DatePicker depth after creation?

4 Answers 174 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Brian Vallelunga
Top achievements
Rank 1
Brian Vallelunga asked on 17 May 2012, 07:58 PM
Is it possible to change a DatePicker depth after creation? I have a date picker next to a DropDownList. After I change the DDL's value, I want the DatePicker's depth to change, based on a function I set. Ideally this would all be done using the MVVM framework, but I'm willing to accept workarounds.

4 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Krustev
Telerik team
answered on 22 May 2012, 01:39 PM
Hello Brian,

 
You can change the depth of the DatePicker if you re-set the options of the DatePicker and the corresponding DateView. Check this jsFiddle demo for more information.

Regards,
Georgi Krustev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Brian Vallelunga
Top achievements
Rank 1
answered on 22 May 2012, 03:55 PM
This worked perfectly thanks. I think this might be better exposed as a new set of methods though. Doing this isn't discoverable at all.
0
Heath
Top achievements
Rank 1
answered on 12 Aug 2015, 06:19 PM
I'm attempting to create this same effect within a TabStrip however I am getting no refresh or change to the calendar an suggestions?
0
Alexander Valchev
Telerik team
answered on 17 Aug 2015, 10:43 AM
Hello,

Does the problem occurs when the widget is not nested inside a TabStrip?

Could you please provide Kendo Dojo which demonstrates your current implementation so I can examine it and assist you further?

Regards,
Alexander Valchev
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
Brian Vallelunga
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Brian Vallelunga
Top achievements
Rank 1
Heath
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or