嗨,我一直在试图弄清楚是否有可能采用带有 3 个子网格的 jqGrid 并将它们对齐,以便它们水平对齐。像这样:
====================================================
| _ ___| |_ _ __| |__ _ __ _ ____ |
我已经尝试将每个设置为向左/向右浮动...但即使设置为重要样式也会被覆盖。任何帮助将不胜感激。
subGridRowExpanded: function(subGridDivId,rowId){
$("#ClassGroupGrid").jqGrid('setSelection',rowId);
var subgridClassTableId = subGridDivId + "_class_t";
var subgridCreationTableID = subGridDivId + '_creation_t';
var subgridConnectionTableID = subGridDivId + '_connection_t';
$("#" + subGridDivId).html("<table style='float: left !important' id='" + subgridClassTableId + "'></table>");
$("#" + subgridClassTableId).jqGrid({
datatype: 'local',
data: classGroupData[parseInt(rowId) -1],
colNames:['Classes'],
colModel:[
{name:'Classes', formatter: classGroupClassesFormatter}
],
shrinkToFit: true
});
$('#' + subGridDivId).append("<table id='" + subgridCreationTableID + "'></table>");
$("#" + subgridCreationTableID).jqGrid({
datatype: 'local',
data: classGroupData[parseInt(rowId) -1],
colNames:['Creation Rules'],
colModel:[
{name:'Creation Rules', formatter: classGroupCreationFormatter}
],
shrinkToFit: true
});
$('#' + subGridDivId).append("<table style='float: right !important' id='" + subgridConnectionTableID + "'></table>");
$("#" + subgridConnectionTableID).jqGrid({
datatype: 'local',
data: classGroupData[parseInt(rowId) -1],
colNames:['Connection Rules'],
colModel:[
{name:'Connection Rules', formatter: classGroupConnectionFormatter}
],
shrinkToFit: true
});
}