CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: Date Entered: 2/2/2007 9:05:11 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 41 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"hsterling" <>
NewsGroup User
Treeview not expanding when NavigationUrlField is used2/2/2007 9:05:11 PM

0

Hello all,

I am using the latest CSSAdapters for a treeview with a sitemapdatasource. It works great when there is no url supplied.  The tree expands and highlights and maintains the correct view.  As soon as I add NavigationUrlField the tree collapses. The correct node is highlighted, but the tree is collapsed.  Any suggestions?  I am also using the code for persisting treeviews (http://msdn.microsoft.com/msdnmag/issues/06/06/WickedCode/default.aspx#S1) in VB.Net, though.  Can anyone help? 

Thank you for any assistance you can give me.

 

 

 

"hsterling" <>
NewsGroup User
Re: Treeview not expanding when NavigationUrlField is used2/3/2007 2:27:00 AM

0

Hi again,

I finally got this working.  There is a fault in the WebControlAdapterExtender.  I changed the RaiseAdaptedEvent to:

Public Sub RaiseAdaptedEvent(ByVal eventName As String, ByVal e As EventArgs)

Dim attr As String = "OnAdapted" + eventName

If ((Not IsNothing(AdaptedControl)) AndAlso _

(Not String.IsNullOrEmpty(AdaptedControl.Attributes(attr)))) Then

Dim delegateName As String = AdaptedControl.Attributes(attr)

Dim methodOwner As Control = AdaptedControl.Parent

Dim method As MethodInfo = Nothing

While (IsNothing(method))

method = methodOwner.GetType().GetMethod(delegateName)

If (IsNothing(method)) Then

methodOwner = methodOwner.Parent

End If

End While

If (Not IsNothing(method)) Then

Dim args() As Object = New Object(1) {}

args(0) = AdaptedControl

args(1) = e

method.Invoke(methodOwner, args)

End If

End If

End Sub

I am still having a problem getting it to work the way I would like. The selected node style is not being applied. It's maintaining viewstate and expanding/collapsing as it should but the style is not being applied. 

Thanks for any help you can provide!

"hsterling" <>
NewsGroup User
Re: Treeview not expanding when NavigationUrlField is used2/3/2007 4:52:51 AM

0

I'm closing this as my question is more applicable in this post: http://forums.asp.net/thread/1387445.aspx

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













webparts

why isn't any <ul> html generated for my details view?

gridview row text size

gridview cellpadding & cellspacing attributes

cssfriendly menubar is behind (z order) dynamic populated gridview in ie but not firefox

javascript files embedded in cssfriendly.dll?

css adapter for asp menu

positioning adapted gridview in adapted detailsview itemtemplate...

beginner problem

populating treeview from sitemap based on selected node

right to left dynamic vertical menu with css friendly control adapters.

menu control submenu css

menu not rendering correctly

horizontal menu - curved tab look with 2 background images

disabling adapters

treeview navigation beta3

treeview onadaptedselectednodechanged

detailsview rendered as overlaped name and value

where is persistantimage.ashx ?

code behind does not get hit with login control

setting controladapter programmatically

is there any good tutorial available?

name mangling

second level menu items displayed misaligned vertically

need some css help on the menuadapter

staticdisplaylevels and maximumdynamicdisplaylevels

totally confused with "simple" menu walkthrough example

checkboxlist and create a new css control adapter

plus/minus images disappears in ie6

css adapter breaks createuserwizard

menu control edges

installation error

custom menu control - inline css problem

asp.net 3.5 parser error with css friendly adapter

beta 3: menu not firing menuitemclick event

asp.net css for horizontal parent & child menus with images

menu and adding the 'confirm()' javascript on one of the item when click

conditional comments with css

menu-items hangs.

css treeview adapter losing checkbox state

reagrding using filter in (menuexample.css) css adapter classes for menu control

bug in css friendly treeview adapter when used with updatepanel and tabcontainer?

how to add a stylesheettheme in a master page

css help for control

css friendly horizontal menu displaying menu too far to the right in the browser window

problem on menu control example?

problems with css adapters and formview / gridview

css friendly control adapters is not running with update panel of atlas

visual studio hangs when creating a new website after installing the css controls vsi file

introduction to this forum

   
  Privacy | Contact Us
All Times Are GMT