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

[Solved] Pick End Of Month

1 Answer 119 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nate
Top achievements
Rank 1
Nate asked on 14 Aug 2013, 09:58 PM
I have a RadDateTimePicker with DateSelectionMode="Month" InputMode="DatePicker" wich allows the user to select a month.  

The DateTime value returned however give me the date for the beginning of the month instead of the end of the month, that I would like.

In my ViewModel I try and convert the value passed into an end of the month value by doing:

private void StartDateChanged()
{
     //if start of month was selected, change to end of month
     if (StartDate != null && StartDate.Value.Day == 1)
     {
         StartDate = StartDate.Value.AddMonths(1).AddDays(-1);
     }
}

Inside a PropertyChanged handler, but the value showing does not seem to update.

1 Answer, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 19 Aug 2013, 01:08 PM
Hello Nate,

In oreder to modify the text, you should use Binding for CurrentDateTimeText property. I'm sending you a simple project, demonstrating how to achieve this. Please not that you will have to use our internal build, that will be available for download later today or tomorrow, in order to use the attached project. There were some issues in RadDateTimePicker, which we've fixed and the fix is included in this week's internal build.

We are sorry for the caused inconvenivence. Feel free to contact us in case you have any problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
DatePicker
Asked by
Nate
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Share this question
or