Printing with splitter (stylesheets/js)

4 posts, 0 answers
  1. Ryan
    Ryan avatar
    60 posts
    Member since:
    Mar 2012

    Posted 25 Feb 2013 Link to this post

    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?
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 27 Feb 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Ashish
    Ashish avatar
    5 posts
    Member since:
    Jun 2013

    Posted 06 Mar 2014 in reply to Ryan Link to this post

    Hi,

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

    Thanks



  5. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 06 Mar 2014 Link to this post

    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!
Back to Top
Kendo UI is VS 2017 Ready