I am attempting to place a gridview element within a jQuery mobile collapsible container.
I have added the following code to load & unload the jqWidget gridview element on expand & collapse. For brevity I options etc have been omitted.
EDIT: Is there a better method (couldn’t find it in the API) for unloading the gridview object?
EDIT: The complete error message…
TypeError: f is null
http://localhost:8080/MLIB-Inventory/js/jqWidgets/jqwidgets/jqxgrid.js
Line 7
$("#current-inventory").bind('collapse', function(event, ui) { $("#jqxgrid").html(false); }); $("#current-inventory").bind('expand', function(event, ui) { /* loading data source etc */ $("#jqxgrid").jqxGrid({ /* options etc */ }); });
It will load & unload without a problem, however if I try to reload or ‘expand’ the collapsible jQuery UI container triggering the grid to reload its data source etc I begin getting errors.
I have tested this on Firefox 19.0a1 (2012-11-18) & Chrome 24.0.1312.70. Thanks in advance.