I am using
$.fn.yiiGridView.update("tprojets-grid", {data: $(this).serialize() })
But I would like to update the whole grid expect the first row.
How I can do that?
is it possible to do something after the grid has been updated complety ?
Nath
Posted 11 January 2013 - 05:30 AM
$.fn.yiiGridView.update("tprojets-grid", {data: $(this).serialize() })
Posted 11 January 2013 - 03:31 PM
Posted 14 January 2013 - 05:33 AM
echo CHtml::ajaxSubmitButton('Ajouter', $this->getController()->createUrl('/TRapportsActivites/Create'), array(
'type' => 'POST',
'dataType' => 'json',
'data' => 'js:$("#TRapportsActivites").serialize()',
'success' => 'js:function(data){
if(data.resultat==="Ok"){
$("#msgError").html("");
$.fn.yiiGridView.update("tprojets-grid", {
data: $(this).serialize()
// success :function(data){alert($("#dateAdd").val()});
//
});
}else{
$("#msgError").empty();
$("#msgError").append(data.msg);
}
}',
));
Posted 14 January 2013 - 05:49 AM
$.fn.yiiGridView.update("tprojets-grid", {
data: $(this).serialize(),
complete: function(jqXHR, status) {
if (status=="success"){
$("#dateAdd").val(data.date);
}
}
});