jquery treeGrid jquery treeGrid 的加载时默认checkbox处于选中状态,如何去除选中状态?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看官方example、api文档,官方示例会有的 这样啊,可以贴下grid库的代码么。如果是压缩的就不用了 $(function(){ // unSelectAll(); var sortId=null; $('#flowSortTreeGrid').treegrid({ title:'${flowset["Folder.Browser"]}', rownumbers: true, fit: true, url:url('/workflow/setting/getSyncFlowSortTree'), idField:'id', treeField:'text', toolbar:[ { text:"${comm['btn.add']}", iconCls:'icon-add', handler:function(){ addWinFlowSort(); } },'-',{ text:"${comm['btn.del']}", iconCls:'icon-remove', handler:delSelections } ], columns:[[ {field:'ck',checkbox:true,id:'checkbox', formatter:function(){ // alert($(this).val('checkbox.checked=""')); if ($( this ).attr( " checked " )) { $( this ).removeAttr( " checked " ); } } }, {field:'text',title:'${flowset["text"]}',width:450,align:'left'}, {field:'attr1',title:'${flowset["Name"]}',width:100,align:'center'}, {field:'attr2',title:'${flowset["flowsort.count"]}',width:100,align:'center'}, {field:'id',title:'${flowset["Modified.Date"]}',width:100,align:'center', formatter:function(value,value1){ sortId="'"+value1.id+"'"; return "<a onclick=editSort("+sortId+"); href=# >${flowset["flowsort.edit"]}</a> <a onclick=delSort("+sortId+"); href=# >${flowset['flowsort.delete']}</a>"; } } ]] }); }); columns:[[{field:'ck',checkbox:true,id:'checkbox',checked: false//这样看看checkbox:true是选中还是是checkbox按钮 checkbox:true 意思是此行有一列显示多选框的控件那个方法试过,不支持 {field:'ck',checkbox:true,id:'checkbox',value: true/false or yes/no {field:'ck',checkbox:true,id:'checkbox',checked: ""} js两个页面传真问题 关于div的拖动排序问题 extjs2中tabpanel的中元素显示问题 请教js生成excel问题 关于js的frame问题,请帮忙解答下 谢谢 请问两个iframe挨着的时候如何不显示边,能紧密挨在一起? 急!数组问题,高手指点! 怎样动态的交换两个单元格中的背景图片 请问如何隐藏和显示一个图片 jquery datatable翻页功能无法实现 Extjs的一些问题 谁对 KISSY 了解 介绍一下 万分感谢!
// unSelectAll();
var sortId=null;
$('#flowSortTreeGrid').treegrid({
title:'${flowset["Folder.Browser"]}',
rownumbers: true,
fit: true,
url:url('/workflow/setting/getSyncFlowSortTree'),
idField:'id',
treeField:'text',
toolbar:[
{
text:"${comm['btn.add']}",
iconCls:'icon-add',
handler:function(){
addWinFlowSort();
}
},'-',{
text:"${comm['btn.del']}",
iconCls:'icon-remove',
handler:delSelections
}
],
columns:[[
{field:'ck',checkbox:true,id:'checkbox',
formatter:function(){
// alert($(this).val('checkbox.checked=""'));
if ($( this ).attr( " checked " ))
{
$( this ).removeAttr( " checked " );
} }
},
{field:'text',title:'${flowset["text"]}',width:450,align:'left'},
{field:'attr1',title:'${flowset["Name"]}',width:100,align:'center'},
{field:'attr2',title:'${flowset["flowsort.count"]}',width:100,align:'center'},
{field:'id',title:'${flowset["Modified.Date"]}',width:100,align:'center',
formatter:function(value,value1){
sortId="'"+value1.id+"'";
return "<a onclick=editSort("+sortId+"); href=# >${flowset["flowsort.edit"]}</a> <a onclick=delSort("+sortId+"); href=# >${flowset['flowsort.delete']}</a>";
}
}
]]
});
});
{field:'ck',checkbox:true,id:'checkbox',checked: false//这样看看checkbox:true是选中还是是checkbox按钮