RadTextBox enabling on postback

2 posts, 0 answers
  1. Josh Lowry
    Josh Lowry avatar
    1 posts
    Member since:
    Jan 2010

    Posted 17 Jan 2010 Link to this post

    Hi there,

    I have an application consisting of an update panel containing a placeholder which contains dynamically created user controls. These user controls consist of several RadComboBoxes, a RadDatePicker and a RadTextBox. I have a method that changes the display mode of each user control depending on the state that it is in (editing, display etc). When these user controls are first created on page load, they are set to display mode and the Rad controls on them are disabled (Enabled = False). This works fine when the page is first loaded, but as soon as the page posts back, the RadTextBox's are enabled (while the other Rad controls remain disabled). I have put a watch on one of the user controls and traced it through the postback, it runs as it should, but the RadTextBoxes are re-enabled between method calls in the postback so I suspect it may be a problem with the viewstate.

    Any suggestions?

  2. Yavor
    Yavor avatar
    11 posts

    Posted 21 Jan 2010 Link to this post

    Hello Josh,

    Based on the supplied information, it is hard to pinpoint the cause of the problem.
    To further track the issue, it will be best if you open a formal support ticket, and send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with more information on the matter.

    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top