How do I change the title of a standard button (edit, add, delete) in the navigator 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" });
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top