DateTimePicker SelectedDate not giving the correct value

4 posts, 0 answers
  1. Jamal Husien
    Jamal Husien avatar
    43 posts
    Member since:
    Feb 2010

    Posted 21 Aug 2010 Link to this post

    Hi
    I have the following problems

    on the page 1 have  DateTimePicker and save button.
    when I type a date directly on the DateTimePicker and then the press the save button, the server side do not see the last value on the DateTimePicker (the server see 1 value before).
     

    for example
    1.I enter the page go to the DateTimePicker and i type their 12/12/2012.
    2.I got to other control (any textbox or other control)
    3.I go back to the DateTimePicker and i type their 31/12/2012.
    4.I press "save"

    then the server side 
    datePicker.SelectedDate equal to "12/12/2012" and not "31/12/2012".

    please please please do not give me unrelative answer.and do not let me loss a time.
    these is same question on asp
    http://www.telerik.com/community/forums/aspnet-ajax/calendar/raddatepicker-s-selecteddate-is-null-but-validationdate-is-not.aspx.

     

    how can I solve that, I cannot tell me customer to go to other control and then press “save” these will be bad solution.

    remark
    if i choose the date by the mouse there is no problem.


    best regrads


     

  2. George
    Admin
    George avatar
    1332 posts

    Posted 25 Aug 2010 Link to this post

    Hi Jamal,

    Thank you for contacting us.

    To complete your task I suggest you to use SelectedValue instead of SelectedDate. Attached you can find a sample project I made and a demo. In the demo I tried to reproduce the issue you have, but to no avail. As long as I understand, you type a date, click a textbox (for example), then type another date and click the button. Please correct me if I am wrong. I used Q2 SP1 binaries to test this project. 

    Looking forward to your reply.

    All the best,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Jamal Husien
    Jamal Husien avatar
    43 posts
    Member since:
    Feb 2010

    Posted 28 Aug 2010 Link to this post

    H
    I am disappointment from your answer.
    I wait a lot of time and i donot get answer or solution for my question.

    1.SelectedValue also no working.

     

    I will make it easy for you

    1. make a new project and put DateTimePicker.
    2. add button that make MessageBox.Show(DateTimePicker. SelectedDate) when you click it.

    run the progect

    if you type on the DateTimePicker  and then you press the botton then you will not get the date you type it.

     


    if you chose the date using the  
    DateTimePickerit is work.

     

    if you go first to other control and then you press the button these is work.

    realy realy I am so
    disappointment from telerik

    I can said from 20 Questions i got only 1  good answer.


    see also my print screen.

  5. George
    Admin
    George avatar
    1332 posts

    Posted 30 Aug 2010 Link to this post

    Hello,

    Could you please see the demo and the project I send you in my previous mail. The project contains a RadDateTimePicker and a button. On the Click event handler I show the SelectedDate (you can change it to SelectedValue, too). In the demo I tried to reproduce the problem, but to no avail. Please, could you try it and give me some feedback if you are able to reproduce the issue with this sample. You could also send us a sample project in which the issue can be observed.

    I will be glad to assist you further.

    Best wishes,
    George
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top