Exemplo n.º 1
0
 private void _doOnJsonStoreResponseSuccess(JsonStoreRequest request, JsonStoreResponse response) {
   var eve = this.OnJsonStoreResponseSuccess;
   if (eve != null)
     eve(this, new AjaxResponseEventArgs { Request = request, Response = response });
 }
Exemplo n.º 2
0
 private void _doOnJsonStoreDSLoaded(IEnumerable ds, JsonStoreRequest request, JsonStoreResponse response) {
   var eve = this.OnJsonStoreDSLoaded;
   if (eve != null)
     eve(this, new JsonStoreDSLoadedEventArgs { DS = ds, Request = request, Response = response });
 }
Exemplo n.º 3
0
 private void _loadDS(Type rowType, JsonStoreResponse jsRsp) {
   this._rowMonEventsDisabled = true;
   try {
     var rsp = jsRsp;
     if ((rsp != null) && (rsp.packet != null) &&
             (rsp.packet.MetaData != null) && (rsp.packet.Rows != null)) {
       if (rowType != null)
         this._lastRowType = rowType;
       var lastRowType = this._lastRowType;
       if (lastRowType != null) {
         this.ClearData();
         foreach (var r in rsp.packet.Rows) {
           var row = this.AddRow();
           row.DisableEvents();
           try {
             foreach (var fld in rsp.packet.MetaData.Fields) {
               var value = r.Values[rsp.packet.MetaData.IndexOf(fld.Name)];
               _setFieldValue(row, fld.Name, value);
             }
           } finally {
             row.EnableEvents();
           }
         }
         rsp.packet.Rows.Clear();
       }
     }
   } finally {
     this._rowMonEventsDisabled = false;
   }
 }