How to set to blank or null

5 posts, 1 answers
  1. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 22 Feb 2010 Link to this post

    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.........
  2. Answer
    Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 25 Feb 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Jon
    Jon avatar
    539 posts
    Member since:
    Apr 2004

    Posted 25 Feb 2010 Link to this post

    thanks
  5. Rudis
    Rudis avatar
    30 posts
    Member since:
    Feb 2010

    Posted 05 Oct 2010 Link to this post

    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
  6. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 08 Oct 2010 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready