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?
Cheers
Josh
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?
Cheers
Josh