Printing when Div-mode

3 posts, 0 answers
  1. Andreas
    Andreas avatar
    143 posts
    Member since:
    May 2008

    Posted 30 Mar 2016 Link to this post


    When using the print toolbar button, the whole page is printed instead of the actual Editor content!

    We are using Div-mode for several reasons...

    This is also the case in your demo:

  2. Ianko
    Ianko avatar
    1738 posts

    Posted 04 Apr 2016 Link to this post

    Hi Andreas,

    When using div content area there is no separate document to be printed. 

    You can, however, customize your own custom Print tool that extracts the content in a dialog and prints it. The solution is demonstrated here in this draft article that will be live shortly—

    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
  3. Andreas
    Andreas avatar
    143 posts
    Member since:
    May 2008

    Posted 04 Apr 2016 in reply to Ianko Link to this post


    I did it with a hidden iframe instead, to get rid of the ugly window...

    Telerik.Web.UI.Editor.CommandList['Print'] = function (commandName, editor, args)
                var prtContent = editor.get_contentArea();
                var iFrame = document.createElement('iframe');
       = 'none';
                if ($telerik.isIE)

    I think this should be default in the Editor control so that we don't have to do so many hacks!

Back to Top