3 Answers, 1 is accepted
0

Shinu
Top achievements
Rank 2
answered on 09 Jan 2009, 07:28 AM
Hi Sudheer,
One suggestion to achieve this functionality is by using RadMaskedTextBox. Please check the example below.
ASPX:
Thanks,
Shinu.
One suggestion to achieve this functionality is by using RadMaskedTextBox. Please check the example below.
ASPX:
<telerik:RadMaskedTextBox ID="RadMaskedTextBox1" RoundNumericRanges="false" Runat="server" Mask="<0..100>"> |
</telerik:RadMaskedTextBox> |
Thanks,
Shinu.
0

sudheer
Top achievements
Rank 2
answered on 09 Jan 2009, 08:52 AM
Hi shinu,
Thanks for reply. i have one issue if i use radmasktextbox ,
there is no property Type="Percentage" which radnumerictextbox consists .by that while user entering he will get an idea he is entering percentage.
Is there any solution to approach it
Thanks for reply. i have one issue if i use radmasktextbox ,
there is no property Type="Percentage" which radnumerictextbox consists .by that while user entering he will get an idea he is entering percentage.
Is there any solution to approach it
0

Shinu
Top achievements
Rank 2
answered on 09 Jan 2009, 12:01 PM
Hello Sudheer,
Try modifying the code for RadMaskedTextBox as shown below:
ASPX:
Another option is that you can try the RadNumericTextBox with an alert which notifies the user if the entered value is more than 100. Please try the code snippet below.
ASPX:
JavaScript:
Thanks,
Shinu.
Try modifying the code for RadMaskedTextBox as shown below:
ASPX:
<telerik:RadMaskedTextBox ID="RadMaskedTextBox1" RoundNumericRanges="false" Runat="server" Mask="<0..100> %"> |
</telerik:RadMaskedTextBox> |
Another option is that you can try the RadNumericTextBox with an alert which notifies the user if the entered value is more than 100. Please try the code snippet below.
ASPX:
<telerik:RadNumericTextBox ID="RadNumericTextBox1" runat="server" MinValue="0" Type="Percent" > |
<ClientEvents OnBlur="Blur" /> |
</telerik:RadNumericTextBox> |
JavaScript:
function Blur(sender, eventArgs) |
{ |
if(sender.get_value()>100) |
alert('enter a value less than 100'); |
} |
Thanks,
Shinu.