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

readonly radtextbox

1 Answer 130 Views
Input
This is a migrated thread and some comments may be shown as answers.
Piyush Bhatt
Top achievements
Rank 2
Piyush Bhatt asked on 12 Feb 2008, 08:42 PM
I have a ReadOnly RadTextBox with empty text value. I set its value using Javascript from the client side. When the page is submitted, the server gets empty value in the text box. The javascript value is lost.

Is there anyway, to get this value?

I saw other threads talk about similar problem, but all of which said that telerik could not reproduce the behavior. Can you try this one?
-Piyush

1 Answer, 1 is accepted

Sort by
0
Pavel
Telerik team
answered on 13 Feb 2008, 04:59 PM
Hello Piyush,

As explained in the help you cannot change the Text value of the RadInput control when its ReadOnly property is set to "true". In short, if you intend to modify the value of the control you should not use ReadOnly. If you want to be able to change the Text value (via client or server code) and at the same time prevent the user from doing so, you can use the Enabled="false" property. I hope this helps.

Greetings,
Pavel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Input
Asked by
Piyush Bhatt
Top achievements
Rank 2
Answers by
Pavel
Telerik team
Share this question
or