使用MVCJQGrid将所有行设置为editmode [英] Use MVCJQGrid to set all rows to editmode

查看:107
本文介绍了使用MVCJQGrid将所有行设置为editmode的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试使用jqGrid函数设置要编辑的所有行。这是函数。

Trying to use the jqGrid function to set all rows to edit. Here is the function.

<script type="text/javascript">
$(document).ready($(function(){
     $("#TimeTracker").jqGrid(
      {
       gridComplete: function(){
           var $this = $(this), ids = $this.jqGrid('getDataIDs'), i, 
           l = ids.length;
           for (i = 0; i < l; i++){
               $this.jqGrid('editRow', ids[i], true;
             }
          }
       });



我的问题是它无法识别表,因为我在函数中放置一个警报并且它永远不会被运行。它抛出一个错误指定的实体尚未被声明。但是当我删除这个方法时它只加载在editmode中为我想要的所有行.AnyIdeas?


My Problem is its not able to identify the table as I put a alert in the function and it never gets ran. It throws an error "The specified entity has not been declared". But when I remove this method it loads just not in editmode for all rows like I want. AnyIdeas?

推荐答案

(document).ready(
(document).ready(


(function(){
(function(){


(#TimeTracker)。jqGrid(
{
gridComplete:function(){
var
("#TimeTracker").jqGrid( { gridComplete: function(){ var


这篇关于使用MVCJQGrid将所有行设置为editmode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆