Printing RadTreeView

7 posts, 0 answers
  1. Hrushikesh
    Hrushikesh avatar
    33 posts
    Member since:
    Sep 2010

    Posted 20 Oct 2010 Link to this post

    How can i Print a RadTreeView same like RadGridview?

    Thank you
    Hrushikesh Patel
  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 25 Oct 2010 Link to this post

    Hi Hrushikesh,

    Please take a look at the attached project as it demonstrates one possible way to print a TreeView. Let me know how it works for you.

    Sincerely yours,
    Kiril Stanoev
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. Anil Gupta
    Anil Gupta avatar
    4 posts
    Member since:
    Sep 2009

    Posted 08 Jan 2011 Link to this post

    I have the same scenario but the treeview is in collapse state. I want to print out all the nodes.

    Is it possible to expand all the nodes and get the print out. I tried the updatelayout event but it is not working. Can you suggest a way or give me a sample for it?

     

    Thanks

    Anil

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 12 Jan 2011 Link to this post

    Hello Hrushikesh,

    Please check out the attached sample and let us know how it goes. Basically, I use RadTreeView.ExpandAll() in the PrintPage event handler of the PrintDocument  and CollapseAll() in the EndPrint event handler. If your tree is databound and particular RadTreeViewiItems should be collapsed or expanded after printing, just rebind the tree instead of using CollapseAll().
    Feel free to ask if you need further assistance.

    Kind regards,
    Petar Mladenov
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
  6. Hrushikesh
    Hrushikesh avatar
    33 posts
    Member since:
    Sep 2010

    Posted 13 Feb 2011 Link to this post

    The Solution given was working for small amount of data. if large amount of data the printer is showing spooling for long time and not complete.
    Please reply. I am Stuck on this part.
    Thank you
    Hrushikesh
  7. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 17 Feb 2011 Link to this post

    Hello Hrushikesh,

    Please excuse us for the delayed response. We need some more time to investigate this issue in depth. We'll contact you later today. Thank you for your patience.

    Best wishes,
    Petar Mladenov
    the Telerik team
  8. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 17 Feb 2011 Link to this post

    Hello Hrushikesh,

    After some investigation I believe we can't do much about this issue. What I've discovered so far is:
    1) Silverlight sends BMPs to the printer
    2) We cannot control the DPI of the printer

    The two factors above cause Silverlight to send large amounts of data to the printer which causes the lag.
    In Silverlight 5 there will be vector printing which in my opinion will fix the current problem.
    Also, what I've discovered so far is that if I pass a WriteableBitmap (not UIElement) to e.PageVisual, printing is much faster. I'll continue investigating for further workarounds and get back to you as soon as possible.

    Regards,
    Kiril Stanoev
    the Telerik team
Back to Top
DevCraft banner