Oddball ASP.NET TreeView / CSS problem
-
Hi guys, Have an issue with an asp.net Treeview control, for which some nodes are being populated on demand. I have 2 styles defined, one for SelectedNodeStyle-CssClass and one for NodeStyle-CssClass The problem I have is that when rendered, the nodes have an additional style added, so rather than class="standardNode", I'm actually getting class="standardNode ASPNet_Treeview2"..... This in and of itself isn't a huge issue - the nodes "look ok"....however, some are populated on demand when expanded - for the newly added nodes, the additional style is omitted, meaning I end up with class="standardNode"......so my nodes look different... I've googled myself dry on this one - anybody have any clues or ideas for a workaround - come on, don't be shy - any idea will be considered!
C# has already designed away most of the tedium of C++.
-
Hi guys, Have an issue with an asp.net Treeview control, for which some nodes are being populated on demand. I have 2 styles defined, one for SelectedNodeStyle-CssClass and one for NodeStyle-CssClass The problem I have is that when rendered, the nodes have an additional style added, so rather than class="standardNode", I'm actually getting class="standardNode ASPNet_Treeview2"..... This in and of itself isn't a huge issue - the nodes "look ok"....however, some are populated on demand when expanded - for the newly added nodes, the additional style is omitted, meaning I end up with class="standardNode"......so my nodes look different... I've googled myself dry on this one - anybody have any clues or ideas for a workaround - come on, don't be shy - any idea will be considered!
C# has already designed away most of the tedium of C++.
Firstly it's a good idea to post a css problem question on the css forum there are experts who visit that forum and can answer this question in a split second. Either way, i don't seem to understand your question, what are the CssClass names for: - SelectedNodeStyle-CssClass - NodeStyle-CssClass A quick fix would be to see what styling ASPNet_Treeview2 has and include that on your standardNode. Good luck, Morgs