BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi David,
We have analyzed your code snippet and we suspect that while adding the new record “beginEdit” clientside event of the grid is not triggered. It will get triggered while editing the record of the grid.
We
have created the sample based on your requirement and the same can be
downloaded from the following link.
Sample Link: Sample.zip
In the above sample we have used “actionBegin” clientside event which can be triggered while begin the actions like CRUD, Filtering, Sorting etc.. and also we have used “selectedRowIndex” method of the grid for binding datasource to the dropdownlist based on the corresponding row index.
Please refer the below code snippet
$("#Grid").ejGrid({ . . . . enableAutoSaveOnSelectionChange:false, //Disable auto save while change the selection
actionBegin: function (args) { if (args.requestType == "add" || args.requestType == "beginedit") { isEditing = true; activeRow = args.model.selectedRowIndex; if(args.requestType=="add") { var gridobj = $("#Grid").data("ejGrid");
activeRow = args.model.selectedRowIndex + 1; } } }, }); }); </script> |
Please refer the below Online Documentation link to get more information about the events of the grid.
Online Documentation Link: http://help.syncfusion.com/UG/JS_CR/ejGrid.html#Events
Please try the above sample and let us know if you have any queries.
Regards,
Gowthami V.
Hi David,
We are able to reproduce the issue “enableAutoSaveOnSelectionChange issue with record save” and we have logged defect report for this. We have also created an incident 132490 to provide you the defect information and please follow-up with that incident so that you can track this defect status through your direct trac account.
Please let us know if you have any queries.
Regards,
Alan Sangeeth S