当自定义按钮添加到子网格(使用 jqgrid navButtonAdd)但仅在 FireFox 和 IE 中时,导航按钮(无论是在 toppager 还是常规寻呼机上)是否存在错误?它似乎在 Chrome 中工作/看起来很好 - 父网格的自定义按钮在 Firefox 和 IE 中也可以正常工作,这只是一个外观问题/悬停和大小问题,仅作为这些浏览器的子网格出现在网格中。
这是按钮大小和悬停位置的错误。
查看这张图片以了解我的意思:http: //i.imgur.com/YLroY.png
我的代码(在子网格的 subGridRowExpanded 属性中)是这样的:
jQuery("#" + subgrid_table_id).jqGrid('navButtonAdd','#RedirectsTable_' + row_id + '_t_toppager_left',
{
caption : "Add New Region Url... ", buttonicon : 'ui-icon-plus',
id : "btnAddNewRegionUrl_" + subgrid_table_id,
onClickButton : function()
{
addNewRegionUrlRow("#" + subgrid_table_id, row_id);
}
}).jqGrid('navButtonAdd','#RedirectsTable_' + row_id + '_t_toppager_left',
{
caption : "Copy All ", buttonicon : 'ui-icon-copy',
id : "btnCopyRegionUrls_" + subgrid_table_id,
onClickButton : function()
{
copyRegionUrlRows(row_id);
}
}); // etc chaining them like this. Also, I add buttons in this manner for the parent grid and to the bottom pager as well
任何解决此问题的帮助将不胜感激。
谢谢!:)