Print Preview from Org Chart sample?

6 posts, 0 answers
  1. Marian
    Marian avatar
    7 posts
    Member since:
    Dec 2010

    Posted 15 Oct 2012 Link to this post

    Hi, I've been working with the Org Chart sample and I have it working the way I want to. I need to be able to utilize the Print function, which is working properly. However, is there anyway to create a Print Preview screen so the user has an idea of how the diagram will look on the page?
  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 17 Oct 2012 Link to this post

    Hi,

    Currently we provide a print preview only for WPF version of our diagramming framework. There are limitations in Silverlight when reading and writing settings to the printer.
    Actually we share the functionality to split the diagram into pages and visualize it. The part that is missing is reading and writing settings to the printer.
    I'm not sure if that functionality is sufficient for achieving your goals. If it is, we would gladly assist you with the solution.

    Greetings,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Marcel
    Marcel avatar
    1 posts
    Member since:
    Feb 2013

    Posted 21 Feb 2013 Link to this post

    Is it possible to disable or hide only the the print preview's page separation lines on a RadDiagram independent from the background grid? I've been looking for a property, DiagramCommand or something similar to 'SwitchGridVisibility' but it seems that there doesn't exist something like that.
    (using RadControls for WPF Q1 2013)
  5. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 26 Feb 2013 Link to this post

    Hi Marcel,

    You could easily hide the grid or the pages by using the following attached properties:
    1) BackgroundGrid.IsGridVisible - toggle grid visibility.
    2) BackgroundPageGrid.IsGridVisible - toggle page visibility.
    You could explore the other attached properties in these classes should you need more customization.

    Note that these properties should be attached to a RadDiagram instance like follows:

    <telerik:RadDiagram
            primitives:BackgroundGrid.IsGridVisible="..."
            primitives:BackgroundGrid.LineStroke="..."
            primitives:BackgroundGrid.CellSize="..."
            primitives:BackgroundPageGrid.IsGridVisible="..."
            primitives:BackgroundPageGrid.LineStroke="..."
            />
        

    Furthermore, we do provide quite extensive samples architecture where we try to highlight the most of our controls (in particular about 8 example for RadDiagram). In case you have missed our online demos, you could find them here.

    Hope this helps, please let us know if you need more info.

    Greetings,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Tom
    Tom avatar
    16 posts
    Member since:
    Sep 2012

    Posted 01 Apr 2013 Link to this post

    Hristo --

    We are still using the last release, so I can't test these new functionality (the BackgroundGrid.IsGridVisible properties, in particular).    So, I just have one question.

    Do these page layout lines only reflect what will be printed -- or does altering the  size of the size of each page (BackgroundGrid.CellSize)  alter what is printed?     For example, could I alter the CellSize property to fit an entire diagram on one page?


    Thanks
  7. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 03 Apr 2013 Link to this post

    Hi Tom,

    Page background lines are used only for visual reference. Changing their value does not change printing settings. We left the logic for synchronizing printing settings and page lines to the developer depending on his specific case.
    Furthermore, we would be glad to assist you with the migration to latest binaries in case you face any issues.

    Regards,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner