Embed Radgrid Control & Alter ItemTemplate Height

2 posts, 0 answers
  1. Developer
    Developer avatar
    50 posts
    Member since:
    Apr 2014

    Posted 28 Aug 2015 Link to this post


    I have an orgchart setup like this:


    <telerik:RadOrgChart ID="RadOrgChart1"runat="server"OnNodeDataBound="RadOrgChart1_NodeDataBound"
                   <divstyle="height: 50%">
                           <%#DataBinder.Eval(Container.DataItem, "Name")%></span>
                           <%#DataBinder.Eval(Container.DataItem, "role")%></span>
                       <telerik:RadGrid ID="RadGrid1" runat="server"OnNeedDataSource="RadGrid1_NeedDataSource">

    I’d like to have a radgrid embeded into each node, however to do this I need to grab the ID of the node from the RadGrid1_NeedDataSource event.
    Can someone please advise how I can do this please?
    Also is there any way to increase the item template height?

  2. Nencho
    Nencho avatar
    1777 posts

    Posted 02 Sep 2015 Link to this post


    You can enlarge the NodesTemplates using css and the following approach:

    <style type="text/css">
            html .rocGroup {
                height: 450px;
            .rocItemTemplate {
                height: 400px !important;

    As for your other question about acquiring the IDs of the nodes - could you specify the biding approach for the RadOrgChart that you use, so we could get a clearer picture on your scenario?

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top