The 'formatter' function only returns the formatted string. This function can't create any components automatically. You have to construct them manually. Please try to call .linkbutton(...) when loaded data successfully.
$('#dg').datagrid({
onLoadSuccess:function(){
$(this).datagrid('getPanel').find('a.easyui-linkbutton').linkbutton();
}
});