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

How to Clear Control Text

1 Answer 54 Views
TimePicker
This is a migrated thread and some comments may be shown as answers.
Gopesh
Top achievements
Rank 1
Gopesh asked on 31 Jul 2010, 10:57 AM
Hi,
 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.

Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan
Telerik team
answered on 04 Aug 2010, 10:13 AM
Hi Gopesh,

Setting
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.

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
TimePicker
Asked by
Gopesh
Top achievements
Rank 1
Answers by
Boyan
Telerik team
Share this question
or