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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

CellEdit, CellSave, Validation event is not triggered

Thread ID:

Created:

Updated:

Platform:

Replies:

117529 Nov 4,2014 11:35 AM UTC Nov 5,2014 12:25 PM UTC ASP.NET Web Forms 1
loading
Tags: Grid
Andreas Hubert
Asked On November 4, 2014 11:35 AM UTC

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


Ragavee U S [Syncfusion]
Replied On 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


CONFIRMATION

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.

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

;