This is a migrated thread and some comments may be shown as answers.

Printing with splitter (stylesheets/js)

3 Answers 43 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 25 Feb 2013, 06:56 PM
I wanted to see if anyone has opinions on printing content from a splitter. The way I see it there are two paths.

  1. A complicated print stylesheet
  2. Some JS to copy the desired visible content to another area of the page combined with a simple print stylesheet to hide all of the splitter and leave the newly copied content visible.
The only caveat I see with #2 is I won't be able to capture the end of a print event so these new elements will continue to exist in the DOM. The upside is that my screen stylesheet can just ignore that container.

Has anyone else printed content from a splitter? How did you deal with it? Are there better alternatives I might be overlooking?

3 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 27 Feb 2013, 11:32 AM
Hello Ryan,

If you are providing a print button, see the following StackOverflow thread for some options: how to print part of the page with javascript. If you are relying on the browser print behavior, you will have to resort to the first option, since there is no coherent way to determine when the page is getting printed.

All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Ashish
Top achievements
Rank 1
answered on 06 Mar 2014, 12:54 PM
Hi,

I want to print the kendo UI window contents. Is there any way to print it.

Thanks



0
Dimo
Telerik team
answered on 06 Mar 2014, 01:22 PM
Hi Ashish,

You can use the guidelines provided in our documentation.

http://docs.telerik.com/kendo-ui/getting-started/web/window/overview#printing-the-window-contents

Also please note that this is the Splitter forum. Posting questions in the correct forum section is strongly recommended.

Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Splitter
Asked by
Ryan
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Ashish
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or