zoukankan      html  css  js  c++  java
  • jqgrid no url reset

    如果发现 jqgrid 在运行中出现次错误,可能是以下原因

     $('#@(ViewBag.tabcid + "_grid")').jqGrid('navGrid', '#@(ViewBag.tabcid + "_page")',
           {//options
               view: false,
               del: ('@ViewBag.type' != null && '@ViewBag.type' == "1") == true,
               add: false,
               edit: false,
               search: false,
               refresh: true
           },
           {//edit options 
              
           },
           { // add options 
             
           },
           {//del options 
               reloadAfterSubmit: true, closeOnEscape: true//
               , url: '@Url.Action("Delete")'
               , beforeShowForm: function (form) {
               }
               , afterComplete: function () {
                   //jQuery("#shipFactorList_d").jqGrid('clearGridData', true);
                   //jQuery("#shipFactorList_d2").jqGrid('clearGridData', true);
               }
               , afterSubmit: function (response, formid) {
                   var data = JSON.parse(response.responseText);
                   if (data.status) {
                       return [true, "OK", data.id];
                   }
                   else {
                       return [false, data.errmsg];
                   }
               }
           },
           {  },// search options 
           {  } //view options 
    
       );
    

     以上可以看到  options 中定义的按钮 应该 对应到每一个大括号

  • 相关阅读:
    js基础:关于Boolean() 与 if
    @@cursor_rows变量解析
    SQL Prompt
    google android sdk下载hoosts
    java环境配置
    Linux grep用法整理
    bash调试执行
    Vim常见快捷键汇总
    Linux查看磁盘块大小
    Linux Bash终端快捷键小结
  • 原文地址:https://www.cnblogs.com/xuzai/p/4283274.html
Copyright © 2011-2022 走看看