Confirm Insert

3 posts, 0 answers
  1. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 02 Sep 2011 Link to this post

    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. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 06 Sep 2011 Link to this post

    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 >>

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Eric Klein
    Eric Klein avatar
    183 posts
    Member since:
    Aug 2009

    Posted 08 Sep 2011 Link to this post

    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.
Back to Top