EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: thecyberzone on July 30, 2019, 02:38:59 AM



Title: Display Link button in Datagrid Column
Post by: thecyberzone on July 30, 2019, 02:38:59 AM
I want to display 2-3 Link Button in the last column say 'Action' of a datagrid. I used formatter option to display link button , but insted of displaying LinkButton it only displays Link in the column. What should I do to display as LinkButton ?

Code:
 					
{field:'action',title:'Save',width:40,align:'center',
formatter:function(value,row,index){
if(row.editing) {
return '<a href="javascript:void(0)" class="easyui-linkbutton" onclick="saverow()"><img src="images/edit.png" /></a> ';
}
else {
return '<a href="javascript:void(0)" class="easyui-linkbutton" onclick=""><img src="images/checkmark.png" /></a> ';
}
}
}


Title: Re: Display Link button in Datagrid Column
Post by: sky-t on July 30, 2019, 04:25:14 AM
Hi,

just use following code in datagrid onLoadSuccess function:

var p = $(this).datagrid('getPanel');
$.parser.parse(p);

Greets


Title: Re: Display Link button in Datagrid Column
Post by: thecyberzone on July 30, 2019, 09:29:02 PM
Hi,

just use following code in datagrid onLoadSuccess function:

var p = $(this).datagrid('getPanel');
$.parser.parse(p);

Greets

I want to show Button interface in datagrid column, it's working but button is not visible, insted of button only link is visible.