jQuery EasyUI - Add link to datagrid cell
2014-02-14 09:25
1416 查看
Extracted from: http://stackoverflow.com/questions/16061894/jquery-easyui-add-link-to-cell
HTML:
Javascript:
REF:
http://blog.csdn.net/com360/article/details/6537074 http://www.jeasyui.com/documentation/datagrid.php http://jeasyui.com/demo/main/index.php?plugin=DataGrid http://www.thinkphp.cn/code/207.html
HTML:
<table id="dgContactSearch" title="Benutzer Suche" class="easyui-datagrid" style="height:160px" url="getContacts.php" toolbar="#toolbarContactSearch" pagination="true" rownumbers="true" fitColumns="true" singleSelect="true"> <thead> <tr> <th data-options="field:'firma',width:80,align:'left',formatter:formatCustomerId">Kunde</th> <th data-options="field:'name',width:50,align:'left',formatter:formatContactUrl">Name</th> <th field="function" width="50">Funktion</th> <th field="phone" width="50">Phone</th> <th field="email" width="50">Email</th> <th field="mobile" width="50">Mobile</th> <th field="fax" width="50">Fax</th> <th field="comment" width="120">Kommentare</th> </tr> </thead> </table>
Javascript:
<script> function formatCustomerId(val,row){ var url = "customerView.php?id="; return '<a href="'+url + row.customer_id+'">'+val+'</a>'; } function formatContactUrl(val,row){ var url = "contactView.php?id="; return '<a href="'+url + row.id+'">'+val+'</a>'; } </script>
REF:
http://blog.csdn.net/com360/article/details/6537074 http://www.jeasyui.com/documentation/datagrid.php http://jeasyui.com/demo/main/index.php?plugin=DataGrid http://www.thinkphp.cn/code/207.html
相关文章推荐
- How to Add Columns to a DataGrid through Binding and Map Its Cell Values
- How to add hyperlink in JLabel
- add a confirm dialogbox to the editItem of the datagrid
- flex/in the datagrid,how to get the new value of cell in the datagrid after edit
- DataTable,DataView和DataGrid中一些容易混淆的概念以及Add DataRow to asp:DataTable
- excel操作之Add Data to a Spreadsheet Cell
- How to group Option Button (Form control) with cell link.
- excel操作之Add Data to a Spreadsheet Cell
- Add a Footer Row to a Silverlight 3 DataGrid
- ExtJs 4: How To Add Grid Cell Tooltip
- Using WPF DataGridHyperLinkColumn Items to open Windows Explorer and open files
- SiteMap Controls: How to add a duplicate link in the web.sitemap
- How to set up a link betwteen a real Android cell and Ubuntu System by adb
- SiteMap Controls: How to add a duplicate link in the web.sitemap
- if (Convert.ToBoolean(Session["IsAdmin"])) return PartialView("AddNewLink");
- createDataSource, and add new rows on the datagrid to be filled out.
- How to add app link into home screen/apps pages
- ubuntu下JLink的配置步骤和Can not connect to J-Link via USB的解决
- android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid
- jquery easyui datagrid实现单行的上移下移,以及保存移动的结果