I'm using pqgrid to display a json data set. I'm loading the json data through a separate function and supplying that as the dataModel.data value. I'm using separate filter controls on the page that determine which records should be displayed. Based on the filters the user applies, I'm altering which rows exist in the data and setting a new value for dataModel.length. I then call the "refreshDataAndView" method. The issue is that it works only if the array size gets smaller. For example, I can start with 1500 rows of data, filter to 100 (or any number less than 1500). But as soon as I go back up (say back to 101 rows), I get an error from the pqgrid script saying "unable to get the value of the property 'hidden'': object is null or undefined".
I feel like I'm having a senior moment and forgetting something obvious. Any ideas?
In troubleshooting I've even gone down the path of "destroy"ing the entire pqgrid object, then recreating it with the updated data and it still throws the same error.