Adding a Treeview, is it as simple as it seems ?

Jul 6, 2010 at 12:09 PM

Okay im sure ive missed something here.

Im trying to use the Treeview adapter in my solution, with this browser file. I have also added the CCSFriendly.dll to my references. However the Treeview still renders as a Table any ideas.

 

<browsers>
  <browser refID="Default">
  <controlAdapters>
    <adapter controlType="System.Web.UI.WebControls.TreeView"
             adapterType="CSSFriendly.TreeViewAdapter" />
  </controlAdapters>
</browser>

<browser id="W3C_Validator" parentID="default">
  <identification>
    <userAgent match="^W3C_Validator" />
  </identification>
  <capabilities>
    <capability name="browser"              value="W3C Validator" />
    <capability name="ecmaScriptVersion"    value="1.2" />
    <capability name="javascript"           value="true" />
    <capability name="supportsCss"          value="true" />
    <capability name="supportsCallback"     value="true" />
    <capability name="tables"               value="true" />
    <capability name="tagWriter"            value="System.Web.UI.HtmlTextWriter" />
    <capability name="w3cdomversion"        value="1.0" />
  </capabilities>
</browser>
</browsers>

 

 

Tree view

 

 

           <asp:TreeView ID="tvPages" ExpandDepth="0" runat="server" CssClass="treeView"
             OnTreeNodePopulate="tvPages_TreeNodePopulate" 
             OnSelectedNodeChanged="tvPages_SelectedNodeChanged" OnTreeNodeExpanded="tvPages_TreeNodeExpanded1"
              >
                <Nodes>
                    <asp:TreeNode Text="BluJamSite" PopulateOnDemand="True" Value="1" ></asp:TreeNode>
                </Nodes>
            </asp:TreeView>