I need to clear the toolbar
without reloading the grid in my jqgrid
. It should just reset the toolbar to its default values.
I tried using,
$("#TransactionsGrid")[0].clearToolbar();
My grid datatype:local
and i don't use loadonce:true
.
This made the toolbar
clear and refresh the grid. I dont want that to happen.
Any ideas?
I find the question interesting.
To implement the requirement I suggest to use register
jqGridToolbarBeforeClear
to execute the handler only once. The handler should 1) unregister itself as the event handler and return "stop" to prevent reloading of the grid:The corresponding demo shows it live.