Hi
I want to enforce updates a CGridView by new data
function refreshGrid() {
$.fn.yiiGridView.update("my-grid", {
type: "POST",
url: "' . $myUrlUpdate . '",
data: {},
});
}
the update Action (Yii controller/action) outputs only the my-grid content (including the <div id="my-grid">…)
I check manually that the controller/action outputs the gridview but the CCridview not updated
I tried also
$.ajax({
type: 'POST',
url: "'. $urlUpdate; '",
success: function(data) { //alert(data);
$('#my-grid').yiiGridView('update', {data: data});
}
});
The data returned back to the client (alert(data)) but cgridview still not update
Whats wrong ?
Thanks
All above code is in registerscript, so double quotes are ok