telerik org chart collapse functionality not working

2 posts, 0 answers
  1. Ali
    Ali avatar
    15 posts
    Member since:
    Jul 2012

    Posted 26 Dec 2013 Link to this post

    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!!!
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 27 Dec 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top