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

RadNumeric Textbox

2 Answers 44 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mohamed
Top achievements
Rank 1
mohamed asked on 08 May 2012, 03:51 PM

How To restrict RadNumericTextbox  DecimalSeparator=". , "
I restrict both of then


Thanks Advance,
Mohamed.

2 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 09 May 2012, 06:00 AM
Hello Mohammed,

I am not quite sure about your requirement. I suppose you do not want to show any decimal digits in the RadNumericTextBox. If that is the requirement, try setting the DecimalDigits property as shown below.
aspx:
<telerik:RadNumericTextBox ID="txt" runat="server">
  <NumberFormat DecimalSeparator="," AllowRounding="false" DecimalDigits="0" />
</telerik:RadNumericTextBox>
Please elaborate your requirement if it doesn't help.

Thanks,
Princy.
0
mohamed
Top achievements
Rank 1
answered on 09 May 2012, 10:01 AM
Thanks For Ur Reply Princy.

I Don't Want DecimalSeparator=","   and DecimalSeparator="."

How I restrict That

<telerik:RadNumericTextBox Width="95%" ID="ddltel" AutoCompleteType="Disabled"              runat="server"       Text='<%# Bind("ddltel") %>' FocusedStyle-BackColor="Lavender"
MaxLength="8" onkeydown = "return (event.keyCode!=13);">                                                       
<NumberFormat AllowRounding="false" DecimalDigits="0" GroupSizes="8" />
<ClientEvents OnKeyPress="NoDecimal" />
</telerik:RadNumericTextBox>


Delete Button's Not Working After this changes

Thanks Advance ,
Mohamed
Tags
Grid
Asked by
mohamed
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
mohamed
Top achievements
Rank 1
Share this question
or