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

RadOrgChart appears too long on screen!

12 Answers 396 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
selay
Top achievements
Rank 1
selay asked on 19 Dec 2011, 01:19 PM
Hi, I create a RadOrgChart page.  But it's not fit into the screen. I  would like to make it smaller.  My Telerik version is 2011.3.1115.40. 
I attached my screen's screen shot.

Here is my Code;
<%@ Page Title="" Language="C#" MasterPageFile="~/Controls/MasterPages/User.master" Theme="Default" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Sections_OrgChart_Default" %>
  
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
  
<telerik:RadOrgChart runat="server" ID="RadOrgChart1" ></telerik:RadOrgChart>
  
</asp:Content>
And my Cs codes, 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Getron.AAM;
using Getron.AAM.EntityManagement;
using Getron.Core.Base.Objects;
using System.Data;
  
public partial class Sections_OrgChart_Default : EntityProtectedPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        OrgSchema osch = new OrgSchema();
        QueryEntity qent = new QueryEntity();
        qent.QueryEntityType = Getron.Core.Enums.EQueryEntityType.WhereCondition;
        qent.Query = "SupervisorId=@SupervisorId";
        Getron.DBInterface.Parameter p0 = new Getron.DBInterface.Parameter("@SupervisorId", ParameterDirection.Input, DbType.Int64, 0);
        p0.Value = 23;
        qent.Parameters.Add(p0);
  
        DataTable dt = new DataTable();
        dt = osch.GetCustomViewAll("OrgSchemaAllData", new List<string>() { "SystemUserIntCode", "SystemUserName", "SuperVisorId" }, qent);
  
        RadOrgChart1.DataTextField = "SystemUserName";
        RadOrgChart1.DataFieldID = "SystemUserIntCode";
        RadOrgChart1.DataFieldParentID = "SupervisorId";
  
        RadOrgChart1.DataSource = dt;
        RadOrgChart1.DataBind();
    }
}

12 Answers, 1 is accepted

Sort by
0
Simon
Telerik team
answered on 19 Dec 2011, 09:12 PM
Hi Selay,

Thank you for your feedback.

We are aware that there are cases where the organizational data displayed with RadOrgChart will not fit very well on the screen. Although currently there isn't a way to change that we will be developing a powerful drill-down functionality in the next versions of RadOrgChart that will resolve cases as yours.

Greetings,
Simon
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
Luis
Top achievements
Rank 1
answered on 10 Feb 2012, 08:21 PM
I have the same problem and i already installed the last version of Telerik Control. How can i solve this?
0
Richard Weeks
Top achievements
Rank 2
answered on 14 Feb 2012, 05:50 AM
I second the drill-down, I have an org chart that is absolutely massive (thousands of employees).

I'm using the EntityDataSource and my scrollbars are this > < size :)

Also, is it possible to have a chart bound this way display left-to-right instead of top-to-bottom? This is my code at present:

<telerik:RadOrgChart
    DataFieldID="PositionNumber"
    DataFieldParentID="ReportsTo"
    DataSourceID="MyEmployeesDataSource"
    DataTextField="Surname"
    GroupColumnCount="3"
    ID="MyOrgChart"
    runat="server">
    <RenderedFields>
        <ItemFields>
            <telerik:OrgChartRenderedField DataField="Position" Label="Position" />
        </ItemFields>
    </RenderedFields>
</telerik:RadOrgChart>
 
<asp:EntityDataSource
    ConnectionString="name=MyEntities"
    DefaultContainerName="MyEntities"
    EnableFlattening="False"
    EntitySetName="MyEmployees"
    ID="MyEmployeesDataSource"
    runat="server">
</asp:EntityDataSource>

Richard
0
Peter Filipov
Telerik team
answered on 15 Feb 2012, 12:03 PM
Hi,

The RadOrgChart control supports only one type of rendering - top to bottom. We are going to consider your suggestion about left to right rendering. The drill down functionality will be available in Q2/Q3.2012. Now, only in the group-enabled binding scenario it is possible to set column count (review the demo).

Kind regards,
Peter Filipov
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
CH
Top achievements
Rank 1
answered on 31 May 2012, 08:41 AM
Hi,
After looking at your demo(beta) for the org-chart, i realise that the new drill-down(beta) still doesnt support our needs of many staffs that generate horizontally. it will still cause the screen to be wider.

Attached is my screen shot, do you have any recommendation??

Regards,
CH
0
Peter Filipov
Telerik team
answered on 05 Jun 2012, 10:38 AM
Hello CH,

My recommendation is to make the Nodes smaller. It will decrease the total width. Please review the following demo.

Regards,
Peter Filipov
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
Podpora
Top achievements
Rank 1
answered on 13 Nov 2012, 07:38 PM
It's already done? I also have a problem with the display and change the number of levels does not help. Left to right variant can help.
0
Peter Filipov
Telerik team
answered on 16 Nov 2012, 11:16 AM
Hi Podpora,

You could review the DrillDown functionality here. Regarding to the left to right rendering, for now, we are not going to implement it.

Regards,
Peter Filipov
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
Podpora
Top achievements
Rank 1
answered on 05 Dec 2012, 05:08 PM
Hi Peter,

but DrillDown functionality can't help me. In our company we have more than 5000 people. Someone has directly more than 500 people. I just want to ask you if you thinking about implementation and when?
0
Peter Filipov
Telerik team
answered on 10 Dec 2012, 11:48 AM
Hi Podpora,

We already logged the idea of right to left (horizontal) rendering. I am afraid I could not give you an exact time frame when the feature will be available. Before that we need to make a rendering engine at the server and it will take time. Could you please review the following demo it might help you.

Regards,
Peter Filipov
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
Ti
Top achievements
Rank 1
answered on 26 Jul 2020, 09:06 PM
made the nodes smaller, is 140(w) x 30(h) the minimum node dimensions?
0
Vessy
Telerik team
answered on 04 Aug 2020, 09:29 AM

Hi,

The nodes do not have min width and height, but they have default padding that can increase the size set by you. You can decrease the size of the nodes with a similar CSS:

    html .RadOrgChart .rocItem {
        width: 50px;
        height: 20px;
        padding: 0;
    }

Regards,
Vessy
Progress Telerik

Tags
OrgChart
Asked by
selay
Top achievements
Rank 1
Answers by
Simon
Telerik team
Luis
Top achievements
Rank 1
Richard Weeks
Top achievements
Rank 2
Peter Filipov
Telerik team
CH
Top achievements
Rank 1
Podpora
Top achievements
Rank 1
Ti
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or