ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: atmaneuler on October 22, 2020, 10:01:18 am
-
I try to make show/hide column by toolbar buttons like demo:
https://paramquery.com/demos/showhide_columns
But it occure error at:
var arr = $(this).val(),
ERROR TypeError: Cannot read property 'toLowerCase' of undefined
at jQuery.fn.init.val (jquery.js:8441)
I try to log, and this I got:
With demo:
(http://images/demo.png)
And what I get on my
(http://images/real.png)
What did I misssing?
-
You have taken the code from the free version example.
There is difference between "this" context in the toolbar event listeners between the free version and Pro version.
In Pro version, "this" context variable is the grid instance, hence the error.
Please take help of the Pro example to set up show hide columns:
https://paramquery.com/pro/demos/showhide_columns