How can I disable a textbox within a row edit template user control? I am trying to disable a textbox on edits of the grid but allow entry in textbox when the user clicks the Add New Box..
I was trying to do this on the UltraWebGrid1_AfterRowTemplateOpenHandler but it looks as if the UWG is overriding that.
Hello Robert,
Once you generate the RowEditTemplate, you can directly go to its HTML in the ASPX and set some of the textboxes to disabled, e.g.
<RowEditTemplate>
<input type="textbox" ... disabled="disabled" ... />
</RowEditTemplate>
Will this work in your case?
Well perhaps yes. But for some reason has the ID of my text field mismatched. I have a text field within a webpanel in a user control. That user control is the row edit template for a grid which is also within a webpanel.
So when trying to get the ID for my text field:I was expecting user control id... WebPanel1_UltraWebGrid1_ctl00_ctl00_WebPanel1_txtCitation - Which existsBut I am getting web form panel id...igtxtWebPanel1_UltraWebGrid1_ctl00_ctl00_WebPanel1_txtCitation - But this is the actual field which is disabledProblem is I can't retrieve the ClientID for txtCitation in my user control from the WebForm because it doesnt exist yet.