Jan Schreuder on .Net

.Net code samples, experiences, observations

View my professional profile on LinkedIn

Recent Posts

Tags

News

  • Inappropriate comments will be deleted at my discretion.

    The information and code samples in this weblog is provided "AS IS" without warranty of any kind, either expressed or implied, including but not limited to the merchantability and/or fitness for a particular purpose.

Community

Email Notifications

Tool suppliers

Tools

General

Microsoft

Favorite blogs

Archives

What is that treeview doing? Who can help? Problem SOLVED!

We're currently migrating our web applications from the .Net 1.1 framework to .Net 2.0. The whole process runs quite smoothly, untill yesterday that is.

In a few web forms, we've previously used the TreeView which was in the Microsoft Web Components library and it worked fine. But that was 1.1 code and in 2.0 we have a new version of the TreeView control. So we needed to make some changes. That all worked out just fine, but when we run our application we get very strange behaviour from the TreeView component.

When the application starts, a user would see this:

But when the user then clicks on the Minus sign to collapse the tree, the tree moves down a bit. And if you then click the Plus sign to expand the tree node, it stays in position. The TreeView then looks like this:

I save the source for both versions of the HTML and compared it. Both source files are identical! So what's going wrong? Who can help me?

Update

We found the problem. We removed the following from our page: smartNavigation="true"

Comments

Niels said:

Scanning the HTML is only 1/3th of the job. Look for changes in the .css and .js files as well (client-side ofcourse!). You can use the Developer Toolbar from Microsoft for this, or -in case of Firefox- something like Firebug.

# October 23, 2007 10:21 AM

David van Leerdam said:

Hi Jan,

Are you using stylesheets (CSS) or other external sources that might cause this behaviour?

Kind regards,

David van Leerdam

# October 23, 2007 10:39 AM

Jan Schreuder said:

There are of course stylesheets involved. But they are very static, and I apply the same style sheet each time.

# October 23, 2007 10:50 AM
Leave a Comment

(required) 

(required) 

(optional)

(required) 


Please add 3 and 5 and type the answer here: