Change DatePicker depth after creation?

5 posts, 1 answers
  1. Brian Vallelunga
    Brian Vallelunga avatar
    88 posts
    Member since:
    May 2008

    Posted 17 May 2012 Link to this post

    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.
  2. Answer
    Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 22 May 2012 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Brian Vallelunga
    Brian Vallelunga avatar
    88 posts
    Member since:
    May 2008

    Posted 22 May 2012 Link to this post

    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.
  5. Heath
    Heath avatar
    1 posts
    Member since:
    Nov 2014

    Posted 12 Aug 2015 Link to this post

    I'm attempting to create this same effect within a TabStrip however I am getting no refresh or change to the calendar an suggestions?
  6. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 17 Aug 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready