This is a migrated thread and some comments may be shown as answers.

Confirm Insert

2 Answers 70 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eric Klein
Top achievements
Rank 1
Eric Klein asked on 02 Sep 2011, 03:33 PM
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. 
<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>
Ithen in the code behind I have
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. 

2 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 06 Sep 2011, 09:19 AM
Hi Eric,

 The code snippets look OK. Can you provide some more information and preferably a sample page that replicates the problem and the exact steps to follow so we can check it on our end. 

Greetings,
Marin
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Eric Klein
Top achievements
Rank 1
answered on 08 Sep 2011, 09:30 PM
I think I found the issue I had
EnableAJAX="True"
  
EnableAJAXLoadingTemplate="True" 
in my grid, once I removed those settings it seems to be working fine.
Tags
Grid
Asked by
Eric Klein
Top achievements
Rank 1
Answers by
Marin
Telerik team
Eric Klein
Top achievements
Rank 1
Share this question
or