Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Handling Update Exception
posted

I have an AJAX enabled grid bound to a sqlDataSource.  If an exception occurs for any reason while the user is adding/updating/deleting data in this grid, what is the standard practice for getting this message back to the user?  Currently my grids just keep working as if nothing has gone wrong. 

BTW, I can see exception data being passed into the sqlDataSource_Updating event. 

Thanks!

Parents
No Data
Reply
  • 45
    posted

    Hi,

     Try this. I hope it helps. 

     Regards,

    Harun#?

      function UltraWebGrid1_XmlHTTPResponseHandler(gridName, rowId, gridResponse){   
       var ResponseObj = gridResponse ; // igtbl_getGridById(gridName).XmlResponseObject;
       
       if (ResponseObj.ReqType==igtbl_reqType.UpdateRow ||
        ResponseObj.ReqType==igtbl_reqType.AddNewRow ||
        ResponseObj.ReqType==igtbl_reqType.DeleteRow
       )
       {
        alert(ResponseObj.StatusMessage);
       }
      }

Children