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

[Solved] RadTextNumeric Textbox Currency Readonly Problem

2 Answers 244 Views
Input
This is a migrated thread and some comments may be shown as answers.
Sasikumar
Top achievements
Rank 1
Sasikumar asked on 22 May 2008, 01:01 PM
Hi ,

I have used a  Rad Numeric Textbox,

i have  set it as  readonly=true.

If i  press '.' key, it resets  the  value  for another 2 values.

for Ex;

previuosly it is 135.54

after pressing '.' it becomes 13554.00

<radI:RadNumericTextBox EnabledStyle-Font-Names="verdana"  EnabledStyle-Font-Size="Small" BorderWidth="0" ReadOnly="true" ID="txtHedge"    NegativeStyle-ForeColor="red"  EnabledStyle-HorizontalAlign="Right" runat="server" MaxLength="18">

                                <EnabledStyle HorizontalAlign="Right" />

                                <NegativeStyle ForeColor="Red" />                                            

                            </radI:RadNumericTextBox>


Please help me out in this issue.

Thanks,
Sasikumar

2 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 23 May 2008, 10:11 AM
Hi Sasikumar,

I'm not sure if i corectly understand your issue. If you set ReadOnly="true" than there shouldn't be an option to change anything in the control even pressing any key. Could you please elaborate a little bit more on the issue you are facing.

Kind regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Sasikumar
Top achievements
Rank 1
answered on 26 May 2008, 09:10 AM
Hi Maria,

Thanks for your reply.

You are right that we should not able to modify the data. But if you press escape (double times) and '.' it is modifying the data inside the TextBox.

Even the Textbox is in ReadOnly mode, we ca able to press the keys such as '.' and 'Escape'

For Ex:

If the data inside the textbox is "134.55"

If we press '.' the value is changing to "13455"

If we press again the escape key (double time) it is changing to "1.3455"

The HTML tag used is:

<radI:RadNumericTextBox EnabledStyle-Font-Names="verdana"  EnabledStyle-Font-Size="Small" BorderWidth="0" ReadOnly="true"

ID="txtHedge"    NegativeStyle-ForeColor="red"  EnabledStyle-HorizontalAlign="Right" runat="server" MaxLength="18">
    <EnabledStyle HorizontalAlign="Right" />
    <NegativeStyle ForeColor="Red" />                                           
</radI:RadNumericTextBox>

This occurs even the textbox ReadOnly Property is called in the CodeBehind.

Please reply for any clarification.

Regards,
Sasikumar
Tags
Input
Asked by
Sasikumar
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Sasikumar
Top achievements
Rank 1
Share this question
or