This question is locked. New answers and comments are not allowed.
What is the equivalent code in ASP and Silver 4 of the following code shown as below.
What i am trying to achieve is something like this. I have four columns in RadGridView, first col is CustomerID, second is CustomerName, third is CustomerAddress followed by the last col, which contains checkbox.
What i am trying to achieve is something like this. I have four columns in RadGridView, first col is CustomerID, second is CustomerName, third is CustomerAddress followed by the last col, which contains checkbox.
When user ticks on a checkbox, the customer address textbox of a particular row will be enabled.
When user unticks on a checkbox, the customer address textbox of a particular row will be disabled.
May i know how to do this, thanks in advanced.
protected void Edit(object sender, EventArgs e) { RadTextBox textbox; ChkBox checkbox = (ChkBox)sender; GridItem item = (GridItem)box.NamingContainer ; textbox= (RadTextBox)item.FindControl("txtEditCustAdd"); if (checkbox.Checked) { textbox.Enabled = true; } else { textbox.Enabled = false; textbox.Text = ""; } }