EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: aswzen on July 21, 2014, 07:23:05 PM



Title: How to re-transform datagrid? (Datagrid to HTML Table)
Post by: aswzen on July 21, 2014, 07:23:05 PM
Yes, how to re-transform datagrid?   ???

for example there is a demo for transform a HTML table into datagrid table..
http://www.jeasyui.com/easyui/demo/datagrid/transform.html

Now if i want to transform it back to HTML table what should i do??
(i need standard HTML table for printing template)

Thanks in advance
Thanks stworthy


Title: Re: How to re-transform datagrid? (Datagrid to HTML Table)
Post by: stworthy on July 21, 2014, 07:53:02 PM
Just clone the original <table> and append it to another container.
Code:
$('#dg').clone().show().attr('id','').appendTo('body');