readonly radtextbox

2 posts, 0 answers
  1. Piyush Bhatt
    Piyush Bhatt avatar
    166 posts
    Member since:
    Nov 2007

    Posted 12 Feb 2008 Link to this post

    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
  2. Pavel
    Admin
    Pavel avatar
    904 posts

    Posted 13 Feb 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top