I m using Navigator with jqGrid and I m repeating over and over settings such as:
savekey: [true, 13],
closeOnEscape: true,
closeAfterAdd: true
How can I define these settings globally to all my grids on current page?
I know how to specyfiy jqGrid settings globally, but I have problems with Navigator. My sample Navigator definition looks like this:
$("#dictionaryElementsGrid").navGrid(
"#dictionaryElementsPager",
{
search: false,
edit: true,
add: true,
del: true
},
{
// Edit options:
savekey: [true, 13],
closeOnEscape: true,
closeAfterEdit: true
},
{
// Create options:
savekey: [true, 13],
closeOnEscape: true,
closeAfterAdd: true
}
);