How to Clear Control Text

2 posts, 1 answers
  1. Gopesh
    Gopesh avatar
    6 posts
    Member since:
    May 2008

    Posted 31 Jul 2010 Link to this post

     How can I clear the control's Time if I want to blank it out? I tried in several ways like trying by setting SelectedValue=null, SelectedDate=null. Nothing seems to work. It sets null behind the scene, means when I access value of cantrol at codebehind I find null. But on the UI it still displaying the SelectedTime.  It doesn't blank out the control.


  2. Answer
    Boyan avatar
    758 posts

    Posted 04 Aug 2010 Link to this post

    Hi Gopesh,

    timepicker.SelectedValue = null;
    work fine at my side. It properly clears the textbox and shows the EmptyText. Could you please specify the exact version of the controls you are using and if there is something specific in your project and on what event you are setting the Value to null.

    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