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. Image for the cookie policy date

CellEdit, CellSave, Validation event is not triggered

Hello,

in edit mode I would like to refresh cell data after changing value of another cell. Unfortunately there is no serverside event because there is a implementation to process this already. Or is there a way?
I tried to handle this in JavaScript but the events CellEdit and CellSave are not triggered after editing, selecting or (un)checking. Neither declaring the events in aspx nor coding in JavaScript. As a workaround I also tried to change data in the validation but it seems validation events are triggered for columns with EditType String and Decimal only. For Boolean, Date(Time)Picker and DropDown it do not work.

Essential Studio Version: 12.2.0.36

Aspx:

<ej:Grid ID="GridDetails" runat="server" AllowPaging="true" AllowGrouping="false" AllowSorting="false" AllowKeyboardNavigation="false" AllowSearching="false"

OnServerEditRow="GridDetails_ServerEditRow" OnServerRecordClick="GridDetails_ServerRecordClick"

ActionBegin="detailsActionbegin" ActionComplete="delatilsActioncomplete" MergeCellInfo="detailsMergeCellInfo" CellSave="detailsCellSave" CellEdit="detailsCellEdit" AllowResizeToFit="true" QueryCellInfo="formatingCell" EnableRowHover="True" >


Code:

<script type="text/javascript">

$(function () {


$("#GridDetails").ejGrid({

    cellEdit: function (args) {

       alert("cellEdit");

    }

});



$("#GridDetails").ejGrid({

  cellSave: function (args) {

      alert("cellSave");

  }

});


$.validator.addMethod("action", function (value, element, params) {

  alert("action");

  return true;

}, "");

});


function detailsCellEdit(args) {

    alert("detailsCellEdit");

}

function detailsCellSave(args) {

    alert("detailsCellSave");

}

</script>



Regards,

Andreas


1 Reply

RU Ragavee U S Syncfusion Team November 5, 2014 12:25 PM UTC

Hi Andreas Hubert

 

Thanks for your interest in Syncfusion Products.

 

Query #1: events CellEdit and CellSave are not triggered

 

We have analyzed the reported query and suspect that the cause of the issue is that you would have missed out to set the editMode as “Batch” for the grid.

 

The events CellEdit and CellSave are triggered only when Batch editing is enabled.

 

We have created a sample with the provided information in v12.2.0.36 and the same can be downloaded from the below location.

 

Sample Link: http://www.syncfusion.com/uploads/user/directTrac/General/Sample1038942650.zip

 

Query #2: MergeCellInfo

 

We went through the code that you have provided and found that you have used MergeCellInfo property in your sample.

 

<ej:Grid ID="GridDetails" runat="server" AllowPaging="true" AllowGrouping="false" AllowSorting="false" AllowKeyboardNavigation="false" AllowSearching="false"

OnServerEditRow="GridDetails_ServerEditRow" OnServerRecordClick="GridDetails_ServerRecordClick"

ActionBegin="detailsActionbegin" ActionComplete="delatilsActioncomplete" MergeCellInfo="detailsMergeCellInfo" CellSave="detailsCellSave"CellEdit="detailsCellEdit" AllowResizeToFit="true" QueryCellInfo="formatingCell" EnableRowHover="True" >

 

We have included the cell merging feature only in our Volume 3, 2014 v12.3.0.36 release. You can download Volume 3, 2014 from the following link.

 

Download link for Volume 3, 2014: http://www.syncfusion.com/forums/117495/essential-studio-2014-volume-3-final-release-v12-3-0-36-available-for-download

 

Query #3: it seems validation events are triggered for columns with EditType String and Decimal only. For Boolean, Date(Time)Picker and DropDown it do not work.

 

We are sorry to let you know that it is a known issue and the fix for this issue in included in the above Volume 3 link. Please upgrade your project to latest release to avoid the mentioned issue and for better follow ups.

 

Please get back to us if you need any further assistance.

 

Regards

Ragavee U S


Loader.
Live Chat Icon For mobile
Up arrow icon