So my application uses multiple grids, but i separated the codes into 2 files, for one that is unique to the grid, and one more for common functions that are shared across all grids.
Now the thing is, i defined some of the events in the unique files, like for example, i defined loadComplete event in one of the grid only file because the functions are unique for that grid only and not for other grids. But now when i tried to add common loadComplete functions that apply to all grids in the common functions file, it wouldn't work for me.
I can make it work if i defined that common functions in every loadComplete but then that would defeat the purpose of separating unique-to-the-grid functions in one file and shared functions in another file (for maintaining purpose).
So i'd like to know is there any way to add extra functions in loadComplete event in the common functions file, when the loadComplete event has already been applied in every file that is unique to the grid itself.
I tried with the following examples i got from here but none seems to work for me
$.jqgrid.extend({})
$(function() {})
(function($){})
jQuery.extend(jQuery.jgrid.defaults, {})