如何关闭dojo dataGrid outter边框和每行之间的网格线?
我使用以下代码使用DojoDataGrid呈现一个表。 但是,我需要关闭每个单元格周围的边界线(水平和垂直) 完全是。 你能告诉我如何做到这一点吗?(例如,我是否应该为此定义其他CSS?) 非常感谢如何关闭dojo dataGrid outter边框和每行之间的网格线?,datagrid,dojo,Datagrid,Dojo,我使用以下代码使用DojoDataGrid呈现一个表。 但是,我需要关闭每个单元格周围的边界线(水平和垂直) 完全是。 你能告诉我如何做到这一点吗?(例如,我是否应该为此定义其他CSS?) 非常感谢 dojo.ready(function() { var layout = [ {type: "dojox.grid._CheckBoxSelector"}, [ { name: "Photo", field: "Photo", widt
dojo.ready(function() {
var layout = [
{type: "dojox.grid._CheckBoxSelector"},
[
{ name: "Photo", field: "Photo", width: "10%",
formatter: function(field){
return "<img src='/images/test.gif' WIDTH=45 HEIGHT=45>";
}
},
{ name: "Summary", fields:["column1", "column2", "column3", "column4"],editable:true,width: "80%" ,
formatter: function(fields){
var column1 = fields[0],
column2 = fields[1],
column3 = fields[2],
column4 = fields[3];
return "<h4 class='namelink'><a href='javascript:;'>" +column1+ " "+ column2 + "</a></h4>" + "<div class='namelink'> <a href='javascript:;'>"+ "Another Name" + "</a></div>" + column3 + "<br>" + "<div class='addresslink'> <a href='javascript:;'>"+column4+"</a> </div>";
}
}
]
]
var mygrid = new dojox.grid.DataGrid({
id: "gridId",
store: store,
autowidth:"true",
rowselector:"15px",
keepRows: "30",
rowsPerPage: "10",
style:"height:300px",
structure: layout},"gridContainer");
mygrid.startup();
dojo.connect(mygrid, "onApplyEdit", function(row){
store.save();
});
});
dojo.ready(函数(){
变量布局=[
{键入:“dojox.grid.\u CheckBoxSelector”},
[
{名称:“照片”,字段:“照片”,宽度:“10%”,
格式化程序:函数(字段){
返回“”;
}
},
{name:“Summary”,字段:[“column1”、“column2”、“column3”、“column4”],可编辑:true,宽度:“80%”,
格式化程序:函数(字段){
var column1=字段[0],
column2=字段[1],
第3列=字段[2],
第4列=字段[3];
返回“+”+列3+”
“+”;
}
}
]
]
var mygrid=new dojox.grid.DataGrid({
id:“gridId”,
店:店,,
自动宽度:“真”,
行选择器:“15px”,
船首:“30”,
行页面:“10”,
样式:“高度:300px”,
结构:布局},“gridContainer”);
mygrid.startup();
connect(mygrid,“onApplyEdit”,函数(行){
store.save();
});
});
编辑:仅顶部和底部
.dojoxGridCell {
border-width: 1px 0 !important;
}
编辑:仅顶部和底部
.dojoxGridCell {
border-width: 1px 0 !important;
}
您好,谢谢您的快速回复。有没有办法关闭两个垂直边框,但保留顶部+底部边框?您好,谢谢您的快速回复。有没有办法关闭两个垂直边界,但保留顶部+底部边界?