var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); MVCxClientGridView = _aspxCreateClass(ASPxClientGridView, { constructor: function(name) { this.constructor.prototype.constructor.call(this, name); this.callbackUrl = ""; this.addNewRowUrl = ""; this.updateRowUrl = ""; this.deleteRowUrl = ""; this.callbackCustomArgs = {}; this.addNewRowCallBack; this.updateRowCallBack; this.deleteRowCallBack; this.deleteKeyValue; }, InlineInitialize: function(){ if(this.callbackUrl != "") this.callBack = function(arg){ MVCx.PerformControlCallback(this.name, this.callbackUrl, arg, this.GetCallbackParams(arg), this.callbackCustomArgs) }; if(this.addNewRowUrl != "") this.addNewRowCallBack = function(arg){ MVCx.PerformControlCallback(this.name, this.addNewRowUrl, arg, this.GetCallbackParams(arg), this.callbackCustomArgs) }; if(this.updateRowUrl != "") this.updateRowCallBack = function(arg){ MVCx.PerformControlCallback(this.name, this.updateRowUrl, arg, this.GetCallbackParams(arg), this.callbackCustomArgs) }; if(this.deleteRowUrl != "") this.deleteRowCallBack = function(arg){ MVCx.PerformControlCallback(this.name, this.deleteRowUrl, arg, this.GetCallbackParams(arg), this.callbackCustomArgs) }; ASPxClientGridView.prototype.InlineInitialize.call(this); }, RaiseBeginCallbackInternal: function(command){ if(!this.BeginCallback.IsEmpty()){ var args = new MVCxClientBeginCallbackEventArgs(command); this.BeginCallback.FireEvent(this, args); this.callbackCustomArgs = args.customArgs; } }, CreateCallbackByInfo: function(arg, command, callbackInfo) { this.CreateCallbackInternal(arg, command, true, callbackInfo); }, GetCallbackParams: function(arg) { var params = {}; $("#" + this.name + " input," + "#" + this.name + " textarea," + "#" + this.name + " select").each(function(){ if(typeof(params[this.name]) == "undefined") params[this.name] = this.type == "checkbox" ? this.checked : this.value; }); var editFields = []; var editors = this._getEditors(); for(var i = 0; i < editors.length; i ++) { var editorIndex = this.GetEditorIndex(editors[i].name); var column = this.columns[editorIndex]; params[column.fieldName] = _aspxToJson(MVCx.GetEditorValueByControl(editors[i])); editFields.push(column.fieldName); } if(editFields.length > 0) params["DXMVCGridEditFields"] = _aspxToJson(editFields); if(this.keyName != ""){ if(this.deleteKeyValue){ params[this.keyName] = this.deleteKeyValue; this.deleteKeyValue = null; } else if(!this.IsNewRowEditing() && !params[this.keyName] && this.editingRowVisibleIndex > -1) params[this.keyName] = this.GetRowKey(this.editingRowVisibleIndex); } var DXEditorValues = {}; var DXGrid = this; aspxGetControlCollection().ForEachControl(function(control){ if(!ASPxIdent.IsASPxClientEdit(control)) return; if(control.GetMainElement() && _aspxIsValidElement(control.GetMainElement())){ if(_aspxGetIsParent(DXGrid.GetMainElement(), control.GetMainElement())) DXEditorValues[control.name] = MVCx.GetEditorValueByControl(control); } }); params[MVCx.EditorsValuesKey] = _aspxToJson(DXEditorValues); return params; }, EvalCallbackResult: function(resultString){ var resultStringParts = resultString.split(MVCx.CallbackHtmlContentPrefix); if(resultStringParts.length == 2){ var resultObj = ASPxClientGridView.prototype.EvalCallbackResult.call(this, resultStringParts[0]); resultObj.result = resultStringParts[1]; return resultObj; } return ASPxClientGridView.prototype.EvalCallbackResult.call(this, resultString); }, CreateCallbackCore: function(arg, command, callbackID) { __theFormPostData = this.savedFormPostData; __theFormPostCollection = this.savedFormPostCollection; this.GetCallback(command).call(this, this.GetSerializedCallbackInfoByID(callbackID) + arg); }, GetCallback: function(command) { if (command == "DELETEROW") return this.deleteRowCallBack; if (command == "UPDATEEDIT") return this.IsNewRowEditing() ? this.addNewRowCallBack : this.updateRowCallBack; return this.callBack; }, DeleteRowByKey: function(key) { this.deleteKeyValue = key; ASPxClientGridView.prototype.DeleteRowByKey.call(this, key); } }); } /* playback timings (ms): esindex: 0.011 exclusion.robots.policy: 0.128 captures_list: 77.187 exclusion.robots: 0.138 PetaboxLoader3.datanode: 68.434 (4) load_resource: 220.602 RedisCDXSource: 0.694 CDXLines.iter: 21.027 (3) PetaboxLoader3.resolve: 140.261 LoadShardBlock: 51.529 (3) */