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

Centering of Orgchart

1 Answer 46 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Sekhar
Top achievements
Rank 1
Sekhar asked on 30 Jan 2014, 05:28 PM
Hi,

I am using GroupColumnCount as 4 in my radorgchart and based on the nodes i am changing the columncount in the codebehind. The orgchart displays in one location when count is 4 , but shifts to left when the count is less than 4. How can i ensure no matter the column count the orgchart is displayed in the same location or center of the page.

Thank you
-Sekhar

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Dimitrov
Telerik team
answered on 04 Feb 2014, 02:11 PM
Hello Sekhar,

I would like to explain with a few words about the RadOrgChart rendering logic. A group with the subgroups and subnodes  are placed in a separate div container which has a set width value. Calculating and setting of that width value is done internally when the RadOrgChart is being rendered on the page. I would like to clarify that changing this width value or reposition any group, node element or the RadOrgChart  most probably will cause some unexpected behavior and eventually will break the layout.



Regards,
Boyan Dimitrov
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 UI for ASP.NET AJAX, subscribe to the blog feed now.
Tags
OrgChart
Asked by
Sekhar
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Share this question
or