Updating Yii Gridview From Javascript

I need to update my CGridView data after the user has done changes to the form above, without reloading the page.

I tried using this function inside a CHtml link

<?php echo CHtml::link(‘Link Text’,array(" ‘success’ => ’ $(’#main_table2’).yiiGridView.update(‘main_table2’);’ ")); ?>

However it does not refresh the GridView

Any ideas on how this could be accomplished

try this code in success




	$.fn.yiiGridView.update('idname-grid', {

		data: $(this).serialize()

	});



No it does not work either

if you can post your code

I managed to get that working now, but it seems that the CJuiDatePicker has stopped working