ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on January 30, 2020, 09:13:23 pm
-
Trying to refresh header using jQuery tabs.
In create event for each grid after getting some data for headers
grid.refreshHeader();
Getting error on 2nd tab (first work fine)
Uncaught TypeError: Cannot read property '23' of undefined
-
Could you please share a jsfiddle.
-
https://jsfiddle.net/queensgambit9/g4h0mory/9/
-
It throws error because its parent div pane has style display:none
Either you can omit call to grid.refreshHeader() in inactive tabs or you can wrap the call in a try catch.
try{
grid.refreshHeader();
}
catch(e){
}
https://jsfiddle.net/ka9sr02q/
-
Thanks.