title: How do I apply the following CSS to only the Parent nodes of a Kendo Tree View?
body: <p>I have this CSS class:</p>
  
  <pre><code>.relationshipsTree 
  {
      display: inline;
      font-size: 10pt;
      text-decoration: none;
      /*cursor: hand;*/
      overflow: hidden;
      overflow-x: hidden;
      overflow-y: hidden;
      filter: none;
      font-weight: bold;
      color: green;
      background-color: transparent;
  }
  </code></pre>
  
  <p>And I want to use it on the parent nodes of this Kendo Tree View:</p>
  
  <pre><code>&lt;div id="relationshipsTree"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>How do I go about doing this?</p>
  
  <p>EDIT - </p>
  
  <p>This is the .js file I'm using to create the tree. I added:</p>
  
  <pre><code>$('#relationshipsTree').parent().addClass('relationshipsTree');
  </code></pre>
  
  <p>Based on an answer here, however, it is still not working.</p>
  
  <p>Whole file:</p>
  
  <pre><code>function CreateRelationshipsTree()
  {
      var primaryContactId = 671;
      var personOrCompany = 'C';
      var rootMemberId = 0;
  
      var data = new kendo.data.HierarchicalDataSource({
          transport: {
              read: {
                  url: "../api/relationships?primaryContactId=" + primaryContactId + "&amp;personOrCompany=" + personOrCompany + "&amp;rootMemberId=" + rootMemberId,
                  contentType: "application/json"
              }
          },
          schema: {
              model: {
                  hasChildren: "hasChildren",
                  children: "Items"
              }
          }
      });
  
      $("#relationshipsTree").kendoTreeView({
          dataSource: data,
          loadOnDemand: true,
          dataUrlField: "LinksTo",
          dataTextField: ["Name", "Name"],
          select: treeviewSelect
      });
  
      function treeviewSelect(e) {
          var node = this.dataItem(e.node);
          window.open(node.NotificationLink, "_self");
      }
  
      $('#relationshipsTree').parent().addClass('relationshipsTree');
  }
  
  function RefreshProjectTree() {
      var treeView = $("#relationshipsTree").data("kendoTreeView");
      treeView.dataSource.read();
  }
  </code></pre>