Reputation: 87
I'm using jqgrid and i need to update a graph (jquery flot) based on the content of the grid.
My question is, is there an event that i can catch each time a search is preformed??
I've been reading the documentation on jqgrid but so far i just can update the graph when the grid is created not when a search is done.
Any help you can give me would be nice.
Thanks in advance.
Upvotes: 0
Views: 6723
Reputation: 221997
It can a little depend on which form of searching you use. The event onInitializeSearch can be a good choice. If it helps you not, you should append your question with more information which searching way you use (Toolbar Searching, Single field searching, Advanced Searching or Custom Searching) and at what moment (before, after ...) you need to receive an event.
Moreover probably you need catch not really the search event, but the loadComplete event for example. On every reloading of the grid and on every searching the event handler are called at the end of processing.
Upvotes: 2