I have a jqgrid and I would add in the navgrid a personal function with a specific button.
Can I do it? How?
jQuery("#tabGrid").jqGrid({
.....
}).navGrid('#pagerPrivati',
{}, //options
{
}, // edit options
{
}, // add options
{
}, // del options
{
} // search options
);
Thank you so much.
First you can skip the last empty
{}parameters ofnavGrid. So you can just rewrite your code above to the followingTo you main question. You can use navButtonAdd to add your custom button to the grid.
The examples from the documentation seems me clear enough. One more example from the answer which I wrote today could be probably also helpful for you.
One uses typically the values for the
buttoniconparameter in the form:buttonicon: "ui-icon-calculator"where the"ui-icon-calculator"are the name of CSS class which define an icon. Mostly one uses the jQuery UI classes which you can see for example here.