Date Picker Selection

2 posts, 0 answers
  1. Bhavik
    Bhavik avatar
    1 posts
    Member since:
    Sep 2012

    Posted 17 Jun 2014 Link to this post

    Hello,

    I am stuck in one date picker selection. I want to select a date picker. When selection the date , I want to select the beginning of the date at the label. Like if i select 17 June 2014 which is Tuesday, I want to populate 16 June 2014 (Monday). Similarly, If i choose 19 June 2014(Thursday), I want to populate 16 June(Monday). Whatever date I pick, I want the Monday date to populate in the date picker label.
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 19 Jun 2014 Link to this post

    Hi Bhavik,

    Such functionality is not supported out of the box, however it is relatively easy to achieve, using the change event of the widget and a custom function that will calculate the beginning of the week. Please check the following example:

    http://jsbin.com/famagifo/2/edit

    Regards,
    Kiril Nikolov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
Back to Top