We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BeforeBatchSave not work to the update syncfusion version

Thread ID:





121940 Feb 10,2016 03:35 PM UTC Feb 11,2016 11:09 AM UTC ASP.NET Web Forms 1
Tags: Grid
Roimer Machacón Otero
Asked On February 10, 2016 03:35 PM UTC

Hi, we're using syncfusion grid. In this day we update the version of the to Now testing the features we found that BeforeBatchSave in the grid not working in this new version.

Here is the code used for us:


<script type="text/javascript">

function actualizarRecursos(args) {
        console.log("Entra actualizar recursos");
        return ActualizarRecursoDetalleControl(document.getElementById('<%= txtNumeroControlLabores.ClientID%>').value, document.getElementById('<%= txtCodigoPlanAccion.ClientID%>').value, document.getElementById('<%= txtCodigoDetallePlanAccion.ClientID%>').value, JSON.stringify(args.batchChanges));


<ej:Grid ID="gvsRecurso" runat="server" AllowGrouping="false" AllowSelection="true" TabIndex="-1" Locale="es-ES"
                                    Selectiontype="Single" AllowSorting="True" AllowPaging="True" AllowFiltering="false"
                                    RowSelected="filaRecursoSeleccionada" BeforeBatchSave="actualizarRecursos" BatchDelete="limpiarCabeceraRecurso">
                                    <PageSettings PageSize="10" />
                                    <EditSettings AllowAdding="false" AllowEditing="True" AllowDeleting="True" EditMode="Batch"></EditSettings>

                                    <FilterSettings FilterType="FilterBar" FilterBarMode="OnEnter" />
                                    <GroupSettings EnableDropAreaAutoSizing="False"></GroupSettings>
                                        <ej:Column Field="linearec_recursorep" IsPrimaryKey="true" HeaderText="<%$ Resources:ControlLabores, idRecurso %>" Width="10%" />
                                        <ej:Column Field="tiporec_recursorep" IsPrimaryKey="true" HeaderText="<%$ Resources:ControlLabores, codTipo %>" Width="10%" />
                                        <ej:Column Field="nombretiporec_recursorep" IsPrimaryKey="true" HeaderText="<%$ Resources:ControlLabores, nomTipoRecurso %>" Width="16%" />
                                        <ej:Column Field="idrec_recursorep" IsPrimaryKey="true" HeaderText="<%$ Resources:ControlLabores, codRecurso %>" Width="12%" />
                                        <ej:Column Field="nombrerec_recursorep" IsPrimaryKey="true" HeaderText="<%$ Resources:ControlLabores, nombreRecurso %>" />
                                        <ej:Column Field="cantidadrec_recursorep" HeaderText="<%$ Resources:Generales, cantidad %>" Width="9%" EditType="Numeric" />
                                    <ToolbarSettings ShowToolbar="true" ToolbarItems="edit,delete,update,cancel,search"></ToolbarSettings>

Jayaprakash Kamaraj [Syncfusion]
Replied On February 11, 2016 11:09 AM UTC

Hi Roimer,
From version onwards, we need to give client side events  in ClientSideEvents, which is an inner Property of Grid .So, we suggest to use BeforeBatchSave event in ClientSideEvent property. Please refer to the following code example, online demo sample and sample.
Code Example:

<ej:Grid ID="Grid1"    AllowPaging="True"



            <ClientSideEvents BeforeBatchSave="actualizarRecursos"  />


                <ej:Column Field="OrderID" IsPrimaryKey="true" HeaderText="Order ID"    TextAlign="Right" Width="90" />

                <ej:Column Field="CustomerID" HeaderText="Customer ID"   Width="100"  />

                <ej:Column Field="EmployeeID" HeaderText="Employee ID" HeaderTemplateID="#employeeTemplate" TextAlign="Right" Width="110"  />

                <ej:Column Field="Freight" HeaderText="Freight"  TextAlign="Right" Width="90" Format="{0:C}" />

                <ej:Column Field="OrderDate" HeaderText="Order Date" Width="100" HeaderTemplateID="#dateTemplate" TextAlign="Right" Format="{0:MM/dd/yyyy}" />

                <ej:Column Field="ShipCity" HeaderText="Ship City" Width="100" />


                <EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="Batch"></EditSettings>

            <ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>





<asp:Content ID="ScriptContent1" ContentPlaceHolderID="ScriptContent" runat="server">

<script type="text/javascript">

    function actualizarRecursos(args) {

        console.log("Entra actualizar recursos");




Online Demo sample: http://asp.syncfusion.com/demos/web/grid/events.aspx

Sample: http://www.syncfusion.com/downloads/support/forum/121940/ze/121940-2138099320

Jayaprakash K.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon