【发布时间】:2013-08-13 13:32:27
【问题描述】:
我开始在很多地方使用 jQgrid 创建应用程序。现在客户想使用Twitter Bootstrap,以便他们可以在 iPad 上很好地查看该网站。
除了 jQGrid 插件之外,我们最多已经完成了所有工作。它使用px width 定义网格的宽度和column width。
jQuery("#list2").jqGrid({
url:'server.php?q=2',
datatype: "json",
colNames:['Inv No','Date', 'Client', 'Amount','Tax','Total','Notes'],
colModel:[
{name:'id',index:'id', width:55},
{name:'invdate',index:'invdate', width:90},
{name:'name',index:'name asc, invdate', width:100},
{name:'amount',index:'amount', width:80, align:"right"},
{name:'tax',index:'tax', width:80, align:"right"},
{name:'total',index:'total', width:80,align:"right"},
{name:'note',index:'note', width:150, sortable:false}
],
rowNum:10,
rowList:[10,20,30],
pager: '#pager2',
sortname: 'id',
viewrecords: true,
sortorder: "desc",
caption:"JSON Example"
});
jQuery("#list2").jqGrid('navGrid','#pager2',{edit:false,add:false,del:false});
我不知道如何使用 jQGrid 处理这个响应式问题。或者,我可以用 DataTable 插件替换 jQGrid 以提高响应能力。但是我们在很多地方都使用了jQgrid,并且功能很好,我们不想破坏现有的功能。
对使用 jQgrid 作为响应性/流畅布局支持有什么想法/建议吗?
【问题讨论】:
标签: jquery html css twitter-bootstrap jqgrid