Update another element after CGridView

after the click of the delete button of the CGridView i want to update too a div on the samepage with a summary.How to achieve that?

you can give a callback js function by config the

afterDelete property.

the summary is show together with CGridView . if you want show it to another place . using js to retrieve it ($("xxx").html() the xxx represent the "summary" html container element , just use the firebug to see )



    'afterDelete'=>'function(link,success,data){ if(success) alert("Delete completed successfuly"); }',


the callback function can use the "data" param :

$(“xxx”,"<div>"+data+"</div>").html() ; so the xxx selector is in the context of data . :lol: