[Ask] Typeerror: $.fn.yiigridview Is Undefined;

all master Yii Indonesia

saya membuat tombol refresh dengan $.fn.yiiGridView.update(‘grid-id’);




<script>

$(document).ready(function(){

  $("#tombol_refresh").click(function(){

	$.fn.yiiGridView.update('mdata-pribadi-grid'); 

  });

}); 

</script>

<button id="tombol_refresh">Refresh</button>



dan menambahkan AJaxLink sbb:




<?php

echo CHtml::ajaxLink(

	'Open New',      	// the link body (it will NOT be HTML-encoded.)

	array('mDataPribadi/create'), // the URL for the AJAX request. If empty, it is assumed to be the current URL.

	array(

        	'update'=>'#req_res',

	)

);

echo '<div id="req_res">...</div>';

?>



perintah diatas berhasil saat tombol "Refresh" di jalankan tanpa click Ajaxlink "Open New"

namun jika mengklik AjaxLink "Open New" maka tombol "Refresh" gagal

pesan kesalahan :


TypeError: $.fn.yiiGridView is undefined;

mohon bantuannya, trims