Last post Oct 24, 2006 08:38 PM by bitbucket
Sep 09, 2006 09:52 PM|bitbucket|LINK
i have a treeview on which i've set
ShowExpandCollapse="false", but i still get
<span class="AspNet-TreeView-Collapse" onclick="ExpandCollapse__AspNetTreeView(this)"> </span>
rendered on the page. i've quickly looked thru the code, and it doesn't seem to checking the property?
Sep 10, 2006 10:39 AM|Russ Helfand|LINK
Oct 24, 2006 02:30 PM|bitbucket|LINK
Oct 24, 2006 07:40 PM|Russ Helfand|LINK
Sorry, this one slipped past me.
Let's try to work together here to see if there might be a way to arrange the CSS to accomplish the same goal.
Can you describe your situation or provide a simplified version that I could run locally?
Oct 24, 2006 08:38 PM|bitbucket|LINK
i've already tried a bunch of css stuff, but ended up modifying the code in TreeViewAdapter.vb:
Private Function IsExpandable(ByVal item As TreeNode) As Boolean
Dim tv As TreeView = CType(Control, TreeView)
Return (HasChildren(item) OrElse ((Not IsNothing(item)) AndAlso item.PopulateOnDemand)) And tv.ShowExpandCollapse
dunno if it's valid in the whole scheme of things, but it works for me - just sucks to have to keep track of and re-do it on new version of the adapters.