카테고리 없음

After async

TechNote.kr 2015. 11. 16. 15:23
728x90
grid.onCellChange.subscribe(function(e, args) {
    // snip...

    $.ajax({
        type: "POST",
        url: "/en/<?php echo $this->controller; ?>/updateattribute/&callback=?'",
        data: dataString,
        dataType: "json",
        success: function(a) {  
            console.log(data);              
            if(a.status) {                  
                grid.invalidateRow(data.length);
                data.push(item);
                grid.updateRowCount();
                grid.render();
            }
        }
    }); 

});



                grid.invalidateRow(data.length);
                data.push(item);
                grid.updateRowCount();
                grid.render();

위 코드의 역할은?


728x90