ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: angelahlp on January 27, 2021, 10:30:31 am
-
I have functions that I don't want to fire until the grid has loaded. Is there a function that will return whether or not the grid has finished loading? That can be called on the grid object, not done during initialization?
Example:
if editorobj.isLoaded() then do action
I'm looking for the isLoaded() functionality.
TIA
-
are you looking for complete event:
https://paramquery.com/pro/api#event-complete
-
I have a function that is not a part of the grid that is called independent of the grid which highlights a cell in the grid. I don't want to allow that independent function to run unless the grid is loaded.
Is my only option to have a global variable that stores a flag that gets set in the "complete" event?
-
Why do you need a global flag?
grid.on( 'complete', function(){
//call your function or do whatever you want to do.
});