Styling RenderedFields

3 posts, 0 answers
  1. G
    G avatar
    4 posts
    Member since:
    Sep 2012

    Posted 10 Oct 2012 Link to this post


    I have to display multiple text items in a node in an Telerik OrgChart control.

    So I am using RenderedFields like this:
     <telerik:OrgChartRenderedField DataField="Certificates" Label="Certificates" />
     <telerik:OrgChartRenderedField DataField="Role" Label="Role" />


    However I want to style each OrgChartRenderedField differently. Infact some of these fields will be hidden in some situations.

    Can anyone suggest how to do it.

  2. G
    G avatar
    4 posts
    Member since:
    Sep 2012

    Posted 11 Oct 2012 Link to this post

    Can anyone from the Telerik team reply to this post.
  3. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 12 Oct 2012 Link to this post

    Hello Singh,

    Please review the following mark up and CSS. Keep in mind that the nth-of-type selector is not supported under ie8 and older versions of IE.
          <style type="text/css">
                color:blue !important;
                <telerik:RadOrgChart runat="server" ID="RadOrgChart1">
                                <telerik:OrgChartGroupItem Text="Peter">
                                        <telerik:OrgChartRenderedField Text="Field1" />
                                        <telerik:OrgChartRenderedField Text="Field2" />

    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