Changing cell style in NodeDataBound event

4 posts, 0 answers
  1. Ph
    Ph avatar
    2 posts
    Member since:
    Dec 2011

    Posted 13 Dec 2011 Link to this post

    Protected Sub RadOrgChart1_NodeDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.OrgChartNodeDataBoundEventArguments) Handles RadOrgChart1.NodeDataBound
            If e.Node.DataItem.IsDeptHead Then
                e.Node.CssClass = "DeptHead"  <---------- I want to do something like this or just change the cell's background or border color, is there a way to do so???
            End If
        End Sub
  2. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 15 Dec 2011 Link to this post

    Hi,

    Currently it is not possible to apply CSS class to the Node/GroupItem. We are going to implement it. Your points have been updated for the suggestion.

    Kind 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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ph
    Ph avatar
    2 posts
    Member since:
    Dec 2011

    Posted 15 Dec 2011 Link to this post

    Hi Peter

    Thanks for your reply. Apart from what I raised out in my first post, it would be great if you guys can add the function to render personal assistant too. Here is an example: http://demo.orgchartcomponent.com/Demo7.aspx

    Thanks
  5. Peter Filipov
    Admin
    Peter Filipov avatar
    1028 posts

    Posted 19 Dec 2011 Link to this post

    Hello Ph,

    Thank you for the suggestion. We are going to consider this feature for some of the next releases.

    All the best,
    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
Back to Top