Inline editing

2 posts, 0 answers
  1. Athol
    Athol avatar
    2 posts
    Member since:
    Oct 2012

    Posted 05 Apr 2013 Link to this post

    Dear Telerik Support Team,

    I am reaching out to you to seek your assistance in regards to RadGridView.

    The issue is that I can edit a row after the second trial. When the row is double-clicked for the first time to update, it allows me to use edit-textbox to edit. However, the number in the cell will remain the same. From the second time to try updating, it works. In other words, I can update the cells in RadGridView after double-cliking on a row from the second time.

    Simply, I copied the sample code available on your website and pasted it to a .ascx file in a new sharepoint empty project. (the code is available at )

    In ascx, 
    The changes I made to the original code is the columns and DataSource that refer to my own data in my DB.
    Also I removed the below lines, as one script is only allowed in a page.
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    I also removed  <form id="form1" runat="server"></form>

    It would be highly appreciated if you could help me with this issue.

    Best regards,

  2. Marin
    Marin avatar
    1057 posts

    Posted 09 Apr 2013 Link to this post


     The function that updates the row is the handler for the RowClick event:

    function RowClick(sender, eventArgs) {
                    if (editedRow && hasChanges) {
                        hasChanges = false;
                        if (confirm("Update changes?")) {
                            $find("<%= RadGrid1.ClientID %>").get_masterTableView().updateItem(editedRow);

    You can first check whether it is fired appropriately after you have edited a row and then you click on another row. Then you can also check the value of the boolean variables: "editedRow" and "hasChanges". They both have to be true after you edited the row in order for the update to happen.
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top