2011-02-07 53 views

回答

5

这是一种变通方法我和弟弟来到了,只需将在beforeSelectRow事件下面的代码:

beforeSelectRow: function(rowid, e) { 
     if ($(this).getGridParam('selrow') == rowid) { 
     return false; 
     } else { 
     return true; 
     } 
    } 
+0

这伟大的工作,thanx! – Dylan 2011-02-07 12:49:22

7

的最佳解决方案,一点点更紧凑的版本:

beforeSelectRow: function(rowid, e) { 
     return ($(this).getGridParam('selrow') != rowid); 
    }