lgriess 0 Light Poster

I have built a Treeview using the System.UI... provided object. Here's some presentation layer code:

<asp:TreeView ID="ReportList" runat="server"
BorderWidth="1px"
BorderColor="Black"
Font-Names= "Arial"
Font-Size="Small"
ForeColor="Blue"
SelectedNodeStyle-ForeColor="Red"
SelectedNodeStyle-VerticalPadding="0"
ExpandDepth="0"
ImageSet="Arrows"
EnableClientScript="true"
PopulateNodesFromClient="true"
OnSelectedNodeChanged="TreeView_Select_Change"
OnTreeNodePopulate="PopulateNode"
EnableViewState="true"
BorderStyle="Solid"
Height="354px">

<LevelStyles>

<asp:TreeNodeStyle ChildNodesPadding="10"
Font-Bold="true"
Font-Size="9pt"
ForeColor="LightBlue"/>
<asp:TreeNodeStyle ChildNodesPadding="5"
Font-Bold="true"
Font-Size="8pt"/>
<asp:TreeNodeStyle ChildNodesPadding="5"
Font-UnderLine="true"
Font-Size="8pt"/>
<asp:TreeNodeStyle ChildNodesPadding="10"
Font-Size="8pt"/>

</LevelStyles>

<SelectedNodeStyle VerticalPadding="0px" ForeColor="Red"></SelectedNodeStyle>
<Nodes>

<asp:TreeNode Text="Report(s):" SelectAction="Expand" PopulateOnDemand="true"/>

</Nodes>


</asp:TreeView>

My boss thinks I need to add a double click event, so he makes me switch to using the TreeView from

Microsoft.UI.Web.WebControls
instead of
System.UI.Web.WebControls

I jumped through the Microsoft dev. hoops of building the custom microsoft junk for the dll and put the new dll in my bin folder then pointed my References to the new improved and "simple" to use microsoft quilted patch of an OS. Now all my properties that I used to use with the System built-in TreeView don't work and all I wanted was a click or double click event on the leaf node..

Help all you Microsoft lovers...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.