CollapseImageUrl and ExpandImageUrl not working
Hi
I am using the Treeview Control in ASP.Net 2.0 and I want to provide my own expand/collapse images. But its never using the images I have specified. I have no idea why this is happening because the concept seems pretty straight forward enough. This is how my code looks like
<asp:TreeView ID="tv" runat="server" ExpandDepth="0" NodeWrap="True" ShowCheckBoxes="All" ShowLines="True" EnableViewState="true" OnTreeNodePopulate="tv_TreeNodePopulate" PopulateNodesFromClient="False" CollapseImageUrl="/web/images/collapse1.gif" ExpandImageUrl="/web/images/expand1.gif">
<ParentNodeStyle Font-Bold="False" />
<HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
<SelectedNodeStyle Font-Underline="True" ForeColor="#5555DD" HorizontalPadding="0px" VerticalPadding="0px" />
<NodeStyle Font-Names="Tahoma" Font-Size="10pt" ForeColor="Black" HorizontalPadding="5px" NodeSpacing="0px" VerticalPadding="0px" />
<DataBindings>
<asp:TreeNodeBinding DataMember="treenode" TextField="text" ValueField="value"/>
</DataBindings>
</asp:TreeView>
All help is appreciated.
|