EasyUI Forum
June 15, 2024, 09:08:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: how to render a linkbutton at grid?  (Read 11374 times)
Deiva
Newbie
*
Posts: 9


View Profile Email
« on: May 26, 2012, 09:22:30 PM »

Code:
<table id="datagrid" url="ResultRecords.aspx" pagination="true" singleSelect="true" toolbar="#toolbar">
    <thead>
        <tr>
        <th field="SiteID" width="180">List ID</th>
        <th field="ResultId" width="40">button</th>
        </tr>
    </thead>
</table

I want to display a linkbutton at each data row.
Could someone tell me how to do?

I tried to use
Code:
    function formatReload(r, v, i) {
        return '<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-save"></a>';
    }
but it failed.
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: May 27, 2012, 12:12:05 AM »

Try below code:
Code:
$('#datagrid').datagrid({
onLoadSuccess:function(){
$(this).datagrid('getPanel').find('a.easyui-linkbutton').linkbutton();
}
});
« Last Edit: May 27, 2012, 12:30:58 AM by stworthy » Logged
nprioleau
Newbie
*
Posts: 12


View Profile
« Reply #2 on: March 17, 2016, 06:25:38 AM »

Did you ever figure this out? I am trying to do the same thing and no information available.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!