更改jqGrid中的导航栏图标 [英] Change navigation bar icons in jqGrid

查看:104
本文介绍了更改jqGrid中的导航栏图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改 jqGrid .我该怎么办?

I want to change the order of the navigation button icons for the add, update and delete button in a jqGrid. How can I do that?

推荐答案

您可以使用 jQuery.insertBefore jQuery.before jQuery.insertAfter id="del_list".

You can reorder the navigation buttons just by usage of the functions like jQuery.insertBefore, jQuery.before, jQuery.insertAfter or jQuery.after. It's only important to know the ids of the cells used for the standard buttons. The ids will be build from the prefixes "add_", "del_", "search_", "refresh_", "edit_" and the id of the grid. For example if you have the grid with the id="list", then the cell of Delete button has the id="del_list".

该演示使用以下代码

$("#del_list").insertBefore("#add_list");
$("#search_list").insertBefore("#del_list");
$("#refresh_list").insertBefore("#search_list");

将导航按钮重新排序为以下内容:

to reorder the navigator buttons to the following:

这篇关于更改jqGrid中的导航栏图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆