Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 23rd, 2012  |  syntax: None  |  size: 0.88 KB  |  hits: 25  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Alert with jqGrid error messages
  2. ccur is undefined
  3. [Break On This Error] idr = ccur[idn] || idr;
  4.        
  5. try {
  6.     // create the grid
  7.     $("#list").jqGrid({
  8.         // all jqGrid options
  9.     });
  10. } catch (err) {
  11.     // display the error message which you want
  12.     alert(err);
  13. }
  14.        
  15. success:function(data,st, xhr) {
  16.     if ($.isFunction(ts.p.beforeProcessing)) {
  17.             ts.p.beforeProcessing.call(ts, data, st, xhr);
  18.     }
  19.     try {
  20.         if(dt === "xml") { addXmlData(data,ts.grid.bDiv,rcnt,npage>1,adjust); }
  21.         else { addJSONData(data,ts.grid.bDiv,rcnt,npage>1,adjust); }
  22.         if(lc) { lc.call(ts,data); }
  23.         if (pvis) { ts.grid.populateVisible(); }
  24.     } catch (err) {
  25.         alert(err);
  26.     }
  27.     if( ts.p.loadonce || ts.p.treeGrid) {ts.p.datatype = "local";}
  28.     data=null;
  29.     if (npage === 1) { endReq(); }
  30. }
  31.        
  32. ajaxmin.exe jquery.jqGrid.src.js -out jquery.jqGrid.min.js