Pick End Of Month

2 posts, 0 answers
  1. Nate
    Nate avatar
    3 posts
    Member since:
    Jul 2013

    Posted 14 Aug 2013 Link to this post

    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.

  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 19 Aug 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top