This is a migrated thread and some comments may be shown as answers.

Printing entire Orgchart

4 Answers 106 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
technotes
Top achievements
Rank 1
technotes asked on 18 Mar 2013, 05:44 PM
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? 

4 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 20 Mar 2013, 06:47 AM
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.
0
Juan
Top achievements
Rank 1
answered on 06 Sep 2013, 12:05 PM
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?
0
Ivan Zhekov
Telerik team
answered on 09 Sep 2013, 07:10 AM
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.
0
Juan
Top achievements
Rank 1
answered on 16 Dec 2013, 07:29 PM
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";
                }
            }
        }
Tags
OrgChart
Asked by
technotes
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Juan
Top achievements
Rank 1
Ivan Zhekov
Telerik team
Share this question
or