Printing entire Orgchart

5 posts, 0 answers
  1. technotes
    technotes avatar
    9 posts
    Member since:
    Jan 2013

    Posted 18 Mar 2013 Link to this post

    I have created the orgchart and it is in it's own page for printing purposes, but when I print it in IE8/9/10 it only will print a portion of the chart.  It will not extended to multiple pages so we can print it to either PDF or a printer.  How can I achieve this? 
  2. Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 20 Mar 2013 Link to this post

    Hello,

    Unfortunately Exporting to PDF is not a supported scenario in RadOrgChart. Please excuse us for the inconvenience caused by this issue. I have created item in our feedback portal where you can follow the status of this feature and vote for it here.

    One possible workaround for such issue if RadOrgChart control is not too big will be to  use some tool (like for example this one) to export the whole page.

    Regards,
    Plamen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Juan
    Juan avatar
    2 posts
    Member since:
    Sep 2013

    Posted 06 Sep 2013 Link to this post

    I am having the same problem with the RadOrgChart.  The chart is in its own webpage, I call window.print () from a script and it only prints part of the chart (what ever fits on one page) and ignores the rest.  Having no script produces the same results.  Is there a work around for printing the whole chart?
  5. Ivan Zhekov
    Admin
    Ivan Zhekov avatar
    540 posts

    Posted 09 Sep 2013 Link to this post

    Hi, Juan.

    You can use the Print Preview settings of the browsers to customize the zoom level of the org chart so it fits on a sheet of paper. You could also tweak the orientation of the page portrait if the org chart is tall or landscape if the orgchart is wide.

    In addition, you could tweak the styles of the org chart items to make them smaller.

    Of course all that is performed on a per case basis and it would be nice to see that org chart before giving you a more concrete example.

    Regards,
    Ivan Zhekov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  6. Juan
    Juan avatar
    2 posts
    Member since:
    Sep 2013

    Posted 16 Dec 2013 Link to this post

    The following code reshapes normal parentID to ID relations and groups child nodes into groups that can then be displayed vertically by setting the maximum group column size to 1.  After the reshape takes place you can use the data produced to do a group binding on the Org Chart.  This mitigated my problems alot.  Only downside is both ParentID and ID need to be strings.

            private void NodesToGroups()
            {
                if (Teams != null)
                    Teams = null;

                Teams = new List<Models.Teams>();
                HashSet<String> culler = new HashSet<String>();

                //Find all the parent nodes
                foreach (Employees row in Employees)
                    culler.Add(row.ParentID);

                //Recursive rebuilding of the tree
                foreach (Employees value in Employees)
                {
                    //The current node is a parent node
                    if (culler.Contains(value.ID))
                    {
                        //Create a new unique group for the current node and assign it to this group
                        Teams.Add(new Teams(value.ID, value.ParentID));
                        value.ParentID = value.ID;
                    }
                    //The current node is a child node
                    else
                    {
                        //Check the groups to see if another child node has already added a rule for this generic group
                        if (culler.Add(value.ParentID + "_C"))
                            //Create a new generic group for it based on its parentID that reports to its parents group
                            Teams.Add(new Teams(value.ParentID + "_C", value.ParentID));

                        //Set the current child node to report to the generic parent nodes group
                        value.ParentID = value.ParentID + "_C";
                    }
                }
            }
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017