添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
Thanks for contacting Syncfusion support.
To achieve your requirement we used actionBegin and actionComplete events of ejGrid. In actionComplete event we check the condition with the requestType and add custom button(“ Save & Close ”) in dialogTemplate form.
When we click on Save button we stay in EditMode of Dialog Template by defining args.cancel as true in actionBegin event of ejGrid and update the record in Grid using updateRecord method of ejGrid. We also bind the click event for the custom button and in this event we used endEdit method to save the records in Grid.
Find the code example and sample:
function complete(args) {
if ((args.requestType == "beginedit" || args.requestType == "add" ) && args.model.editSettings.editMode == "dialogtemplate" ) {
var savebtn = ej.buildTag( 'input.e-saveclose e-button e-btnsub e-flat' , "" , { 'margin-left' : '30px' }, { type: "button" , id: this ._id + "_SaveClose" });
savebtn.ejButton({ cssClass: this .model.cssClass, enableRTL: this .model.enableRTL, text: "Save&Close" , width: "100" , height: "35" , click: "btnClick" , });
$( "#" + this .element.attr( "id" ) + "EditForm" ).find( ".e-save" ).after(savebtn);
if (args.requestType == "save" )
flag = true ;
function btnClick(args) {
var grid = $( "#MultiSort" ).ejGrid( "instance" );
flag = false ;
grid.endEdit();
function begin(args) {
if (args.requestType == "save" && flag) {
args.cancel = true ;
flag = false ;
this .updateRecord( "OrderID" , args.data);
</ script >
Refer to the Help documents.
Regards,
Prasanna Kumar N.S.V

Hi Arian,
We have analyzed your query and we suspect that you want to know how to show the server error in the actionFailure event of ejGrid control.
We have already discuss about the above mention query in the following knowledge base documentation.
Refer the help documentation.
Regards,
Thavasianand S.