开发者

changing navigator button titles per jqgrid

开发者 https://www.devze.com 2023-04-05 10:51 出处:网络
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 t

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

精彩评论

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