I have a question which I thought it was easy, but it seems I am missing something.
I have two buttons which load different type of data. I want to use the same div for output and the grid to be overwritten. The js code is:
$('#btnSubmit').on('click', function () {
gridType = gridType || 'daily';
if (grid != null && gridType == 'daily')
$("#detailsGrid").pqGrid("refreshDataAndView");
else
grid = $("#detailsGrid").pqGrid(detailsGrid);
//
gridType = 'daily';
});
$('#btnSubmitMonthly').on('click', function () {
gridType = gridType || 'monthly';
if (grid != null && gridType == 'monthly')
$("#detailsGrid").pqGrid("refreshDataAndView");
else {
if (grid != null)
$("#detailsGrid").pqGrid("destroy");
//
grid = $("#detailsGrid").pqGrid(monthlyDetailsGrid);
}
//
gridType =
The error is:
Uncaught Error: cannot call methods on resizable prior to initialization; attempted to call method 'option'
It seems a jquery error but it is produced when the following code occurs:
$("#detailsGrid").pqGrid("destroy");
grid = $("#detailsGrid").pqGrid(monthlyDetailsGrid);
what is the error?
thanks