I have a screen awith a radgrid and In the eidt form I have a textbox which allows a user to enter a numeric value.
Ithen in the code behind I have
This works and it displays the message when it should, but when it refreshes the grid is locked and I am unabel to edit any of the text fields fields, but the drop down lists work and when ever I access a drop down that causes a postback the textboxes work again.
<td> <label for="CIK"> CIK:</label> <asp:TextBox ID="CIKTextbox" runat="server" Text='<%# Bind("CIK") %>' Columns="35" AutoPostBack="true" OnTextChanged="CIK_TextChanged" /> <asp:label id="DupCheck" Font-Bold="true" ForeColor="Red" runat="server" /> </td>protected void CIK_TextChanged(object sender, EventArgs e) { TextBox txtbx = (TextBox)sender; GridEditFormItem editFormItem = (GridEditFormItem)txtbx.NamingContainer; Label lbl = (Label)editFormItem.FindControl("DupCheck"); if (CheckCIK(txtbx.Text)) lbl.Text = "This CIK Already Exists"; else lbl.Text = ""; }This works and it displays the message when it should, but when it refreshes the grid is locked and I am unabel to edit any of the text fields fields, but the drop down lists work and when ever I access a drop down that causes a postback the textboxes work again.