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

telerik org chart collapse functionality not working

1 Answer 108 Views
OrgChart
This is a migrated thread and some comments may be shown as answers.
Ali
Top achievements
Rank 1
Ali asked on 27 Dec 2013, 05:47 AM
I'm using Telerik ASP.NET OrgChart to display a simple chart organization, I've a rather small problem: my chart doesn't show any thing for expanding/collapsing the chart, so my chart (which can be large) is displayed with all nodes and it is not I want, I want to be able to hide/show my nodes so that user can navigate chart easily, I've exactly used the code in this sample:
http://www.telerik.com/help/aspnet-ajax/orgchart-expand-collapse.html
but my chart doesn't show hide/show icons, what is going wrong? Do you I miss anything? it is my code:

<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>

        <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<telerik:RadOrgChart ID="RadOrgChart1" runat="server" EnableCollapsing="true">
    <Nodes>
        <telerik:OrgChartNode>
            <GroupItems>
                <telerik:OrgChartGroupItem Text="Item1">
                </telerik:OrgChartGroupItem>
                <telerik:OrgChartGroupItem Text="Item1">
                </telerik:OrgChartGroupItem>
            </GroupItems>
            <Nodes>
                <telerik:OrgChartNode>
                    <GroupItems>
                        <telerik:OrgChartGroupItem Text="Item1">
                        </telerik:OrgChartGroupItem>
                        <telerik:OrgChartGroupItem Text="Item1">
                        </telerik:OrgChartGroupItem>
                    </GroupItems>
                </telerik:OrgChartNode>
                <telerik:OrgChartNode Collapsed="true">
                    <GroupItems>
                        <telerik:OrgChartGroupItem Text="item1">
                        </telerik:OrgChartGroupItem>
                    </GroupItems>
                    <Nodes>
                        <telerik:OrgChartNode>
                            <GroupItems>
                                <telerik:OrgChartGroupItem Text="Item1">
                                </telerik:OrgChartGroupItem>
                                <telerik:OrgChartGroupItem Text="Item1">
                                </telerik:OrgChartGroupItem>
                            </GroupItems>
                        </telerik:OrgChartNode>
                    </Nodes>
                </telerik:OrgChartNode>
            </Nodes>
        </telerik:OrgChartNode>
    </Nodes>
</telerik:RadOrgChart>


I use Q3 2011, also when I want to run my code, I should remove Collapsed="true", I think it is not supported, and I think it is my problem, how can I solve this problem? how can I have an org chart with collapsable/expandable nodes? I use Q3 2011, is it possible at all? I've included only Telerik.Web.UI dll, do I need anything else? any css? Js?

thanks and merry Christmas!!!

1 Answer, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 27 Dec 2013, 11:22 AM
Hi Ali,

You need to upgrade to a newer version of RadControls in order to use expand/collapse functionality. My advice is to update to the latest version of our control so you could use all of the features of the RadOrgChart control.

Regards,
Peter Filipov
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.
Tags
OrgChart
Asked by
Ali
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Share this question
or