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

Date Picker Selection

1 Answer 70 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Bhavik
Top achievements
Rank 1
Bhavik asked on 17 Jun 2014, 06:34 PM
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.

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 19 Jun 2014, 07:26 AM
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.

 
Tags
Date/Time Pickers
Asked by
Bhavik
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or