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

Rad Numeric Texbox

5 Answers 92 Views
Input
This is a migrated thread and some comments may be shown as answers.
Rhonda
Top achievements
Rank 1
Rhonda asked on 22 Oct 2010, 07:44 PM
I have a numeric textbox that is used to choose a birthday year.  I want the box to be blank when the form first comes up so I know if the user fills in the box or not.  I tried setting the value and it won't let me set to 0 since it is outside the Min/Max range.  Any suggestions?

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 25 Oct 2010, 06:28 AM
Hello Rhonda,


You could set the EmptyMessage for RadNumericTextBox so that user will know that he missed tyting birthday year.

ASPX:
<telerik:RadNumericTextBox ID="bYearTextBox" runat="server" EmptyMessage="Enter birthday year"
    MinValue="2000" MaxValue="2010">
</telerik:RadNumericTextBox>



-Shinu.
0
Rhonda
Top achievements
Rank 1
answered on 25 Oct 2010, 02:21 PM
Thank you for the help, turns out that the textbox automatically added a value=0  and that was the problem.  Is there any trick to making the empty message show up in the combo boxes?
0
Dimo
Telerik team
answered on 25 Oct 2010, 02:43 PM
Hello Rhonda,

Set AllowCustomText to "true" for the RadComboBox.

http://www.telerik.com/help/aspnet-ajax/using-emptymessage-property.html

Regards,
Dimo
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
Rhonda
Top achievements
Rank 1
answered on 25 Oct 2010, 03:06 PM
Sorry but that doesn't work because then the user isn't tied to only selecting one of the values in the combo box.
0
Dimo
Telerik team
answered on 26 Oct 2010, 07:48 AM
Hello Rhonda,

I am afraid this is the way RadComboBox works currently. We will implement a different behavior for some of the next versions of the control.

All the best,
Dimo
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
Input
Asked by
Rhonda
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rhonda
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or