EasyUI Forum
May 07, 2024, 01:44:40 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Is it possible to print datagrid?  (Read 12857 times)
lorwynz_11
Newbie
*
Posts: 19


View Profile
« on: October 09, 2013, 08:50:41 PM »

Is it possible to print the data inside the datagrid and print the pop up edit form from this tutorial?
http://www.jeasyui.com/tutorial/app/crud.php
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: October 09, 2013, 11:28:12 PM »

There is no build-in printable functionality in datagrid plugin. The user must to achieve it himself.
Logged
lorwynz_11
Newbie
*
Posts: 19


View Profile
« Reply #2 on: October 10, 2013, 12:21:12 AM »

how about export it in pdf or excel?
Logged
acreonte82
Jr. Member
**
Posts: 85



View Profile
« Reply #3 on: October 11, 2013, 07:30:52 AM »

If you are using PHP you can use this class:
http://phpexcel.codeplex.com/

very easy to implement
Logged
lorwynz_11
Newbie
*
Posts: 19


View Profile
« Reply #4 on: October 11, 2013, 06:08:54 PM »

how can I use it and connect to my datagrid?
Logged
arma
Full Member
***
Posts: 110


View Profile
« Reply #5 on: October 13, 2013, 11:55:15 PM »

I guess there are 2 ways i know:

1. If the data grid is editable in client side you could send the grid data to server and convert the data to excel or any printable format, otherwise you could just convert directly based on the grid query. Just put a datagrid toolbar as a link button to download the excel file.

2. Open new browser window via js (window.open) and send the grid data to the new window. I guess you could format the data as html table so it's nicer to print.
« Last Edit: October 13, 2013, 11:57:21 PM by arma » 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!