Hello I am newbie in yii i am stuck in update a cgridview on ajax call i have tried lots of solution but not helped
Here is my code
$.ajax({
		'type':'POST',
		'url':'<?php echo $this->createUrl("bills/index")?>',
		data:{org_id:orgs_id},
		success:function(data){
		//$('#pending').yiiGridView('update');
		$.fn.yiiGridView.update('yw5', {
    					data: $(this).serialize()
					});
					return false;
			},		
	});
         
        
          
        
           
           
           
         
         
            
            
          
       
      
        
        
          
Got Solution finally
this is code
$("#organisations").change(function(){
	var orgs_id =  $("#organisations").val();
	$.fn.yiiGridView.update('yw5', {
       type:'POST',
       url:'<?php echo $this->createUrl("bills/index")?>',
      data:{org_id:orgs_id},
	});
return false;
});