$(function(){
close1();
$('#test').datagrid({
title:'系统',
iconCls:'icon-edit',
width:'100%',
height:'430',
nowrap: false,
striped: true,
collapsible:true,
url:'${google}/system/Google_find.action',
loadMsg:'数据加载中......',
sortOrder: 'desc',
remoteSort: false,
pageSize:10,
pageNumber:1,
idField:'system_id',
frozenColumns:[[
{field:'ck',checkbox:true},
{field:'system_id',title:'标识',width:100,align:'center',checked:true,
formatter:function(value,rowData,rowIndex){
if(value=="3"){
这里实现value=="3"时,此行的CHECKBOX=TRUE,如何写JS
} }}
]],
columns:[[
{field:'re',title:'备注',width:0,hide:true}
]],
pagination:true,
rownumbers:true,
toolbar:[{
id:'btnadd',
text:'新建',
iconCls:'icon-add',
handler:function(){
add()
}
}
]
});
解决方案 »
- 为什么struts2 加了DEVMODE就报错
- 出个题大家讨论一下:如何使用java实现web的实时动态曲线,要考虑性能问题。[
- 怎样直连jdbc?hibernate+spring
- EL表达式取值
- 怎么获得跳转页面名字
- URL动态传值和接收问题,郁闷两天了!!
- jsp跳转到下个页面的问题(程序如下)
- 求:用正则表达式来检验Email地址的代码怎么写***
- aq.executeQuery: [Microsoft][ODBC Microsoft Access 驱动程序] 客户端的工作过多
- Servlet跳转问题?
- 能让关闭IE的时候弹出一个对话框吗?
- jsp错误java.lang.NullPointerException
if(rows.length>1){
alert("一次只能修改一行");
}else if (rows.length<1){
alert("请选择需要修改的信息!");
return;
}
var objId = rows[0].xxxxx; --当前选择中行的id
{field:'id',title:'标识',width:100,align:'center',
formatter:function(value,rowData,rowIndex){
//alert(value+"--"+rowData.id+"=="+rowIndex);
if(value=="12"){
$('#test').datagrid('selectRow',rowIndex);
}}
}