开发者

changing navigator button titles per jqgrid

How do I change the title of a standard button (edit, add, delete) in the navi开发者_运维问答gator on per grid basis? I want each jqGrid to have a different title and caption on that buttons.


Look at the documentation of navGrid method which has the form:

$("#grid_id").jqGrid('navGrid', '#gridpager', {parameters},
    prmEdit, prmAdd, prmDel, prmSearch, prmView);

The parameters can include any value from $.jgrid.nav (see the default values in the language dependent file i18n/grid.locale-en.js). So you can use for example

$("#grid_id").jqGrid('navGrid', '#gridpager',
    { edittitle: "Edit selected order", addtitle: "Add new order" });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜