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" });
精彩评论