RadOrgChart remove rendered fields for some node in NodeDataBound

2 posts, 0 answers
  1. Mira
    Mira avatar
    5 posts
    Member since:
    Feb 2013

    Posted 14 Apr 2014 Link to this post

    I have an OrgChart  with 2 rendered fields. Am trying to remove the rendered fields for the Root node. i tried to access the node's rendered fields  in the nodeDataBound event, but its not working:


      if (e.Node.ID == "Parent")
                    for (int i = e.Node.GroupItems[0].RenderedFields.Count - 1; i >= 0; i--)
                        e.Node.GroupItems[0].RenderedFields[i] = new OrgChartRenderedField();

  2. Boyan Dimitrov
    Boyan Dimitrov avatar
    2020 posts

    Posted 16 Apr 2014 Link to this post

    Hello Mira,

    I would like to clarify that such scenario could not be achieved on the server-side. Please use the following code in your pageLoad client-side event handler in order to hide the render fields for your root node:
    function pageLoad() {
        $telerik.$(".rocRootNode .rocNodeFields")[0].style.visibility = "hidden";

    Boyan Dimitrov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top