Skip to content Skip to sidebar Skip to footer

'cannot Read Property 'ajaxtype' Of Undefined' While Updating Yii Gridview

Got following error: 'Uncaught TypeError: Cannot read property 'ajaxType' of undefined'. Here's my js code $('document').ready( function () { $.fn.yiiGridView.update('n

Solution 1:

I have no idea about this framework but perhaps it's an asset issue. You can try using instead:

$(window).on("load", function() {
  $.fn.yiiGridView.update('new-orders');
});

Don't forget to read .ready()'s documentation about the usage of this event and you might want to have a closer look at your assets.

Post a Comment for "'cannot Read Property 'ajaxtype' Of Undefined' While Updating Yii Gridview"