It is related with the month change event, it seems.
I now get the error:
Uncaught TypeError: Cannot read property '3' of undefined
When changing the month to April.
This is the code I'm now using:
var obj = {
dataModel: {
postData: {
mesSelect: mes,
anoSelect: ano
}
};
var $objOrcamento = $("#tabela").pqGrid(obj);
$objOrcamento.pqGrid("refreshDataAndView");
}
Also tried:
$.ajax($.extend({}, ajaxObj, {
data: {
mesSelect: mes,
anoSelect: ano
}
}));
But it tells me that ajaxObj is not defined, although I moved it out of any functions.