BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Query 1: The Grid is configured to in Batch mode, and it update the data with a WebMethod. How to show a message if the update has errors?
We can show an error message using the client side event “ActionFailure” when the Grid actions are not completed.
We have an issue “ActionFailure API is missing in ASP.NET Wrapper” and created a new support incident under your account. . Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=/support/directtrac/incidents
We have tried to achieve your requirement using below workaround solution,
<ej:Grid ID="EmployeesGrid" runat="server" Width="1500px" AllowPaging="true" > . . . . <EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="batch"></EditSettings> <ClientSideEvents Create="create" /> <script type="text/javascript"> function create(args) { this.option("actionFailure", "FailMessage"); } function FailMessage(args) { // args.error.error().statusText will display the status of the action failure alert(args.error.error().statusText); </script> |
<ej:Grid ID="EmployeesGrid" runat="server" Width="1500px" AllowPaging="true" > . . . . <ClientSideEvents Create="create" ToolbarClick="click"/> </ej:Grid> <script type="text/javascript"> function create(args) { //Storing editing disabled columns details initially window.data = this._disabledEditableColumns;
} function click(args) {
if (args.itemName == "Add") this._disabledEditableColumns = []; else this._disabledEditableColumns = window.data; } |
Please provide below details to reproduce the issue,