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

How to set to blank or null

4 Answers 721 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Jon
Top achievements
Rank 1
Jon asked on 22 Feb 2010, 06:50 PM
Hi..
How can I initially set the value to blank   "  /   /   " -
So when the form is open  the user can start to type in the date?
thanks again.........

4 Answers, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 25 Feb 2010, 07:59 AM
Hi Jon The Nerd,

You can set the value to null by setting  SelectedDate=null;  , however the Textbox will be just blank  and not " /  / " . Another thing you can consider is the SelectAll()  method that select the whole text of the RadDatepicker. If you set it on GotFocus event you will be able to start writing the date right away when you put the focus on the RadDatepicker.

Hope that helps. Please let me know if you need more info.

Regards,
Boyan
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.
0
Jon
Top achievements
Rank 1
answered on 25 Feb 2010, 08:42 PM
thanks
0
Rudis
Top achievements
Rank 1
answered on 05 Oct 2010, 06:23 PM
Hello!

Binding the SelectedValue to a DateTime property in a view model and setting the value to null doesn´t update the displayed date in the RadDatePicker. I can see that the control is getting the null value but the date is not updated.

<totally:RadDatePicker Width="89" Grid.Column="1" Grid.Row="1" TabIndex="9"
                 SelectedDate="{Binding Path=AvtalsDatumFrom, Mode=TwoWay,    
                 UpdateSourceTrigger=PropertyChanged}" />

What have I missed?

Best regards
/Anna
0
Boyan
Telerik team
answered on 08 Oct 2010, 01:14 PM
Hello Anna Rudlund,

Could you please specify which version of RadControls you are using as there was similar bug that was fixed for Q2 SP2 Version 2010.2.924. Please download the latest version and if you still have problems please let me know.

Kind regards,
Boyan
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
Tags
DatePicker
Asked by
Jon
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Jon
Top achievements
Rank 1
Rudis
Top achievements
Rank 1
Share this question
or